/* ============================================
   AUTH STYLES - Login & Register
   ============================================ */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f4eadb 0%, #e8d5c4 100%);
    padding: 20px;
    font-family: Arial, sans-serif;
}

.auth-container {
    width: 100%;
    max-width: 440px;
}

.auth-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 40px 35px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #e3000f, #ff4d4d);
}

.auth-logo {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo img {
    width: 70px;
    transition: transform 0.3s ease;
}

.auth-logo img:hover {
    transform: scale(1.08) rotate(-3deg);
}

.auth-title {
    text-align: center;
    font-size: 26px;
    font-weight: 700;
    color: #222;
    margin-bottom: 8px;
}

.auth-subtitle {
    text-align: center;
    color: #888;
    font-size: 14px;
    margin-bottom: 30px;
}

/* Form Groups */
.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form .form-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.auth-form .form-group .input-wrapper {
    position: relative;
}

.auth-form .form-group .input-wrapper i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 16px;
    transition: color 0.3s;
}

.auth-form .form-group .input-wrapper input {
    width: 100%;
    height: 50px;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    padding: 0 16px 0 46px;
    font-size: 15px;
    background: #fafafa;
    transition: all 0.3s ease;
    outline: none;
    box-sizing: border-box;
}

.auth-form .form-group .input-wrapper input:focus {
    border-color: #e3000f;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(227, 0, 15, 0.08);
}

.auth-form .form-group .input-wrapper input:focus + i {
    color: #e3000f;
}

.auth-form .form-group .input-wrapper input.error {
    border-color: #e74c3c;
}

.auth-form .error-message {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 6px;
    display: block;
}

/* Checkbox */
.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.auth-options .remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
}

.auth-options .remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #e3000f;
    cursor: pointer;
}

.auth-options .forgot-link {
    font-size: 14px;
    color: #e3000f;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.auth-options .forgot-link:hover {
    color: #b30000;
    text-decoration: underline;
}

/* Submit Button */
.auth-btn {
    width: 100%;
    height: 52px;
    background: linear-gradient(135deg, #e3000f, #c4000d);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

.auth-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(227, 0, 15, 0.35);
}

.auth-btn:active {
    transform: scale(0.98);
}

.auth-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 70%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: skewX(-25deg);
    transition: 0.5s;
}

.auth-btn:hover::before {
    left: 160%;
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 25px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e8e8e8;
}

.auth-divider span {
    color: #999;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Google Button */
.google-btn {
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #fff;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #444;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.google-btn:hover {
    border-color: #e3000f;
    background: #fff5f5;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.google-btn img {
    width: 22px;
}

/* Auth Switch Link */
.auth-switch {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.auth-switch p {
    font-size: 14px;
    color: #888;
}

.auth-switch a {
    color: #e3000f;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s;
}

.auth-switch a:hover {
    color: #b30000;
    text-decoration: underline;
}

/* Session Status */
.auth-session-status {
    background: #d4edda;
    color: #155724;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    border: 1px solid #c3e6cb;
}

.auth-error-alert {
    background: #fff5f5;
    color: #e3000f;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    border: 1px solid #fcc;
}

/* ============================================
   LOCKOUT NOTIFICATION STYLES
   ============================================ */

.auth-lockout-alert {
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-left: 5px solid #ff8f00;
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    animation: lockoutShake 0.5s ease-in-out;
}

@keyframes lockoutShake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-4px); }
    20%, 40%, 60%, 80% { transform: translateX(4px); }
}

.auth-lockout-alert i {
    font-size: 28px;
    color: #ff8f00;
    flex-shrink: 0;
    margin-top: 2px;
}

.auth-lockout-alert .lockout-content strong {
    display: block;
    color: #e65100;
    font-size: 15px;
    margin-bottom: 4px;
}

.auth-lockout-alert .lockout-content p {
    color: #bf360c;
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

/* ============================================
   FORGOT / RESET / CONFIRM PASSWORD STYLES
   ============================================ */

.auth-info-text {
    text-align: center;
    margin-bottom: 25px;
    padding: 16px;
    background: #f0f7ff;
    border-radius: 12px;
    border: 1px solid #d0e3f7;
}

.auth-info-text i {
    font-size: 32px;
    color: #e3000f;
    margin-bottom: 10px;
}

.auth-info-text p {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* Success status alert (for "reset link sent" message) */
.auth-session-status {
    background: #d4edda;
    color: #155724;
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 14px;
    border: 1px solid #c3e6cb;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.5;
}

/* ===== NAVBAR LOGIN BUTTON ===== */

.nav-auth {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.nav-auth .login-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #e3000f;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.35s ease;
}

.nav-auth .login-btn:hover {
    background: #c4000d;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(227, 0, 15, 0.3);
}

.nav-auth .login-btn i {
    font-size: 16px;
}

.navbar.scrolled .nav-auth .login-btn {
    background: #fff;
    color: #e3000f;
}

.navbar.scrolled .nav-auth .login-btn:hover {
    background: #f8f8f8;
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

/* User dropdown when logged in */
.nav-auth .user-dropdown {
    position: relative;
    display: inline-block;
}

.nav-auth .user-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: transparent;
    border: 2px solid #e3000f;
    border-radius: 10px;
    color: #e3000f;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-auth .user-dropdown-btn:hover {
    background: #e3000f;
    color: #fff;
}

.navbar.scrolled .nav-auth .user-dropdown-btn {
    border-color: #fff;
    color: #fff;
}

.navbar.scrolled .nav-auth .user-dropdown-btn:hover {
    background: #fff;
    color: #e3000f;
}

.nav-auth .user-dropdown-menu {
    position: absolute;
    top: 110%;
    right: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}

.nav-auth .user-dropdown:hover .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-auth .user-dropdown-menu a,
.nav-auth .user-dropdown-menu form button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: #444;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.25s;
    width: 100%;
    text-align: left;
    border: none;
    background: none;
    cursor: pointer;
}

.nav-auth .user-dropdown-menu a:hover,
.nav-auth .user-dropdown-menu form button:hover {
    background: #fff5f5;
    color: #e3000f;
}

.nav-auth .user-dropdown-menu .dropdown-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .auth-card {
        padding: 30px 20px;
    }

    .auth-title {
        font-size: 22px;
    }

    .nav-auth .login-btn {
        padding: 8px 14px;
        font-size: 13px;
    }

    .nav-auth .login-btn span {
        display: none;
    }

    .nav-auth .user-dropdown-btn span {
        display: none;
    }
}
