/* =========================== */
/* AUTH FORM SECTION */
/* =========================== */
.auth-section {
    padding: 80px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 400px); /* Adjust based on header/footer */
    background-color: var(--off-white);
}

.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 var(--mobile-padding);
}

.auth-box {
    max-width: 450px;
    width: 100%;
    background: #FFFFFF;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border: 1px solid #eee;
}

.auth-box h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
    margin: 0 0 30px 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: #555;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    font-size: 1rem;
    font-family: var(--font-body);
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box; /* Important for padding */
    transition: border-color 0.3s ease;
    min-height: var(--input-height);
}

.form-group input:focus {
    outline: none;
    /* NEW: Gold focus */
    border-color: var(--primary-gold);
}

.form-toggle {
    text-align: center;
    margin-top: 25px;
    font-size: 0.95rem;
    color: #555;
}

.form-toggle a {
    /* NEW: Dark link */
    color: var(--primary-dark);
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

.form-toggle a:hover {
    color: var(--primary-gold);
}

/* Button override for forms */
.auth-box .btn {
    width: 100%;
}

/* =========================== */
/* MOBILE RESPONSIVENESS */
/* =========================== */
@media (max-width: 768px) {
    .auth-section {
        padding: 40px 0;
        min-height: calc(100vh - 300px);
    }
    
    .auth-container {
        padding: 0 var(--mobile-padding);
    }
    
    .auth-box {
        padding: 30px 20px;
        margin: 0 10px;
    }
    
    .auth-box h2 {
        font-size: 2rem;
        margin-bottom: 25px;
    }
    
    .form-group {
        margin-bottom: 18px;
    }
    
    .form-group input {
        padding: 14px 15px;
        font-size: 16px; /* Prevents zoom on iOS */
        min-height: 48px;
    }
    
    .form-toggle {
        margin-top: 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .auth-section {
        padding: 30px 0;
    }
    
    .auth-container {
        padding: 0 var(--mobile-padding);
    }
    
    .auth-box {
        padding: 25px 15px;
        margin: 0 5px;
        border-radius: 6px;
    }
    
    .auth-box h2 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    
    .form-group input {
        padding: 12px 12px;
    }
    
    .btn {
        padding: 14px 20px;
        font-size: 1rem;
    }
}
/* =========================== */
/* MESSAGE BOX STYLES */
/* =========================== */
#message-box {
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    display: none; /* Hidden by default */
}

#message-box.error {
    background-color: #fee2e2;
    color: #b91c1c;
    display: block;
}

#message-box.success {
    background-color: #d1fae5;
    color: #065f46;
    display: block;
}

/* =========================== */
/* HIDDEN ADMIN BACKDOOR */
/* =========================== */
.admin-backdoor {
    /* Remove all link styling to make it look like regular text */
    color: inherit !important;
    text-decoration: none !important;
    cursor: default !important;
    border: none !important;
    background: none !important;
    
    /* Ensure it inherits the footer logo styling */
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    
    /* Subtle hover effect (very minimal) */
    transition: opacity 0.3s ease;
}

.admin-backdoor:hover {
    color: inherit !important;
    text-decoration: none !important;
    opacity: 0.95; /* Very subtle opacity change */
}

.admin-backdoor:visited,
.admin-backdoor:active,
.admin-backdoor:focus {
    color: inherit !important;
    text-decoration: none !important;
    outline: none !important;
}

/* Additional security - hide any visual feedback */
.admin-backdoor:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

/* =========================== */
/* PASSWORD TOGGLE STYLES      */
/* =========================== */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    width: 100%;
    padding: 12px 45px 12px 15px;
    font-size: 1rem;
    font-family: var(--font-body);
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
    min-height: var(--input-height);
}

.password-wrapper input:focus {
    outline: none;
    border-color: var(--primary-gold);
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    transition: color 0.2s ease;
}

.toggle-password:hover {
    color: var(--primary-gold);
}

.toggle-password:focus {
    outline: none;
    color: var(--primary-gold);
}

/* =========================== */
/* FORGOT PASSWORD LINK        */
/* =========================== */
.forgot-password-link {
    text-align: right;
    margin: -10px 0 20px 0;
}

.forgot-password-link a {
    font-size: 0.85rem;
    color: var(--primary-gold);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.forgot-password-link a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* =========================== */
/* FORGOT PASSWORD PAGE        */
/* =========================== */
.forgot-password-info {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
}

.back-to-login {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
}

.back-to-login a {
    color: var(--primary-dark);
    font-weight: 500;
    text-decoration: none;
}

.back-to-login a:hover {
    color: var(--primary-gold);
    text-decoration: underline;
}

/* =========================== */
/* MOBILE RESPONSIVENESS       */
/* =========================== */
@media (max-width: 768px) {
    .password-wrapper input {
        padding: 14px 45px 14px 15px;
        font-size: 16px;
        min-height: 48px;
    }

    .forgot-password-link {
        margin: -8px 0 18px 0;
    }
}

@media (max-width: 480px) {
    .password-wrapper input {
        padding: 12px 40px 12px 12px;
    }

    .toggle-password {
        right: 10px;
    }
}
