/* Auth pages styling */
.wrapper {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f8f9fa;
    padding: 1rem;
}

.sectionContainer {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

.section {
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    position: relative;
}

.back-chevron {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    color: var(--text-secondary);
    font-size: 1.25rem;
    transition: all 0.2s ease;
}

.back-chevron:hover {
    color: var(--primary-color);
    transform: translateX(-3px);
}

.h2Text {
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 1.75rem;
    color: var(--text-primary);
}

.textCenter {
    text-align: center;
}

/* Password field styling */
.password-container {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem;
    z-index: 10;
}

.toggle-password:hover, .toggle-password:focus {
    color: var(--primary-color);
}

.toggle-password i {
    font-size: 1.25rem;
}

/* Remember me and forgot password */
.forgot-password-link {
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
}

.forgot-password-link:hover {
    text-decoration: underline;
}

.rememberMeContainer {
    display: flex;
    align-items: center;
}

.defaultButton {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
}

/* Password strength meter */
.password-strength-meter {
    margin-bottom: 1.5rem;
}

.password-strength-bar-wrapper {
    height: 6px;
    background-color: #e0e0e0;
    border-radius: 3px;
    margin-bottom: 0.5rem;
}

.password-strength-bar {
    height: 100%;
    width: 0;
    border-radius: 3px;
    transition: width 0.3s, background-color 0.3s;
}

.password-strength-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Footer branding */
.brand-footer {
    margin-top: 2rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.brand-footer img {
    height: 40px;
    opacity: 0.7;
}

/* Loader overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
}

.overlay.hidden {
    display: none;
}

.overlayContent {
    text-align: center;
}

.overlayContent p {
    margin-top: 1rem;
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 500;
}

/* Loading animation */
.boxes {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
    position: relative;
}

.box {
    width: 15px;
    height: 15px;
    position: relative;
    margin: 0 5px;
}

.box div {
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 2px;
    position: absolute;
    animation: boxes 1.5s ease infinite;
    opacity: 0;
}

.box div:nth-child(1) {
    animation-delay: 0s;
}

.box div:nth-child(2) {
    animation-delay: 0.15s;
}

.box div:nth-child(3) {
    animation-delay: 0.3s;
}

.box div:nth-child(4) {
    animation-delay: 0.45s;
}

@keyframes boxes {
    0% { opacity: 0; transform: scale(0.8); }
    20% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(0.8); }
}

/* Success message box */
.changed-password-box {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    animation: slideUp 0.3s ease, fadeOut 0.5s ease 5s forwards;
}

@keyframes slideUp {
    from { transform: translate(-50%, 20px); opacity: 0; }
    to { transform: translate(-50%, 0); opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; visibility: hidden; }
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .section {
        padding: 1.5rem;
        border-radius: 12px;
    }
    
    .back-chevron {
        top: 1rem;
        left: 1rem;
    }
    
    .h2Text {
        font-size: 1.5rem;
        margin-top: 1rem;
    }
}