/* ==========================================================================
   AUTHENTICATION PAGES REVAMP - MODERN & PREMIUM AESTHETICS
   Targeting custom templates: login.php, register.php, forget-page.php
   ========================================================================== */

/* 1. SECTION & BACKGROUND */
.auth-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 80px; /* Accounts for fixed navbar */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.auth-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for contrast */
    z-index: 1;
}

/* 2. GLASSMORPHISM CONTAINER */
.auth-glass-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    color: #fff;
    animation: fadeInSlideUp 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes fadeInSlideUp {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 3. HEADER */
.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.auth-header p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.auth-subtitle {
    margin-top: 10px !important;
    font-size: 14px !important;
    color: #fc7803 !important;
}

/* 4. FORM ELEMENTS */
.auth-form-group {
    margin-bottom: 20px;
}

.auth-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.9);
}

.auth-form-group input[type="text"],
.auth-form-group input[type="email"],
.auth-form-group input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #fff;
    font-size: 15px;
    transition: all 0.3s ease;
}

.auth-form-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.auth-form-group input:focus {
    outline: none;
    border-color: #fc7803;
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 0 4px rgba(252, 120, 3, 0.2);
}

.auth-form-group input.error {
    border-color: #ff3333;
    box-shadow: 0 0 0 4px rgba(255, 51, 51, 0.2);
}

/* 5. FORM OPTIONS (Remember me / Forgot password) */
.auth-form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 14px;
}

.auth-remember {
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-remember input[type="checkbox"] {
    accent-color: #fc7803;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.auth-remember label {
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    margin: 0;
}

.auth-forgot-link {
    color: #fc7803;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.auth-forgot-link:hover {
    color: #fff;
}

/* 6. SUBMIT BUTTON */
.auth-submit-btn {
    width: 100%;
    padding: 14px;
    background: #fc7803;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(252, 120, 3, 0.3);
}

.auth-submit-btn:hover {
    background: #e06902;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(252, 120, 3, 0.5);
}

.auth-submit-btn:active {
    transform: translateY(0);
}

/* 7. FOOTER LINKS */
.auth-footer-links {
    margin-top: 25px;
    text-align: center;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.auth-register-link {
    color: #fc7803;
    font-weight: 600;
    text-decoration: none;
    margin-left: 5px;
    transition: color 0.3s ease;
}

.auth-register-link:hover {
    color: #fff;
    text-decoration: underline;
}

/* 8. LOADER & MESSAGES */
.auth-loader {
    text-align: center;
    margin-top: 15px;
}

.auth-error-msg {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 600px) {
    .auth-glass-container {
        padding: 30px 20px;
    }
    
    .auth-form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}
