/* Login/Register Page - Modern Style */
body { 
    font-family: 'Cairo', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #F8F9FA 0%, #E9ECEF 100%);
    min-height: 100vh;
}

/* Account Container */
.account-container {
    max-width: 460px;
    margin: 50px auto;
    padding: 0 20px;
}

/* Auth Box */
.auth-box {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    border: 1px solid #E5E7EB;
    position: relative;
    overflow: hidden;
}

/* ===== Admin Login (scoped) ===== */
body.admin-login-page {
    min-height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    background: radial-gradient(circle at 20% 20%, rgba(246, 139, 30, 0.18), transparent 35%),
                radial-gradient(circle at 80% 0%, rgba(0, 102, 179, 0.15), transparent 40%),
                linear-gradient(135deg, #0f172a 0%, #111827 100%);
    color: #e5e7eb;
}

.admin-login-box {
    width: 100%;
    max-width: 480px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 36px 32px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
}

.admin-login-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(246, 139, 30, 0.18), rgba(0, 102, 179, 0.14));
    opacity: 0.8;
    pointer-events: none;
}

.admin-login-box h2 {
    position: relative;
    text-align: center;
    color: #fff;
    margin-bottom: 20px;
    font-size: 26px;
    letter-spacing: -0.4px;
}

.admin-login-meta {
    position: relative;
    text-align: center;
    color: #cbd5e1;
    font-size: 14px;
    margin-bottom: 24px;
}

.admin-login-box .form-group {
    position: relative;
    margin-bottom: 18px;
}

.admin-login-box .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #e5e7eb;
    font-size: 14px;
}

.admin-login-box .form-group input {
    width: 100%;
    padding: 14px 14px;
    border: 1.5px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 15px;
    transition: border 0.2s, box-shadow 0.2s, transform 0.1s;
}

.admin-login-box .form-group input:focus {
    outline: none;
    border-color: #f68b1e;
    box-shadow: 0 0 0 3px rgba(246, 139, 30, 0.2);
    transform: translateY(-1px);
}

.admin-login-box .btn-auth {
    width: 100%;
    padding: 14px 16px;
    background: linear-gradient(135deg, #f68b1e 0%, #e67a0c 100%);
    color: #0b1324;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(246, 139, 30, 0.35);
    transition: transform 0.12s ease, box-shadow 0.2s ease;
}

.admin-login-box .btn-auth:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 16px 36px rgba(246, 139, 30, 0.45);
}

.admin-login-box .btn-auth:active {
    transform: translateY(0);
}

.admin-login-box .error-msg {
    position: relative;
    color: #ffb4b4;
    margin-bottom: 14px;
    text-align: center;
    display: none;
    background: rgba(227, 6, 19, 0.12);
    border: 1px solid rgba(227, 6, 19, 0.3);
    border-radius: 10px;
    padding: 10px 12px;
}

.admin-login-box .back-link {
    position: relative;
    text-align: center;
    display: block;
    margin-top: 18px;
    color: #cbd5e1;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.2s ease;
}

.admin-login-box .back-link:hover {
    color: #f68b1e;
}

.auth-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #E30613, #F7941D, #00A651);
}

/* Hide forms by default */
.register-box,
#forgot-box {
    display: none;
}

/* Auth Box Heading */
.auth-box h2 {
    margin-bottom: 30px;
    color: #1A1A2E;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.auth-box h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #E30613;
    border-radius: 2px;
}

/* Form Group */
.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 16px 18px;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #FAFAFA;
}

.form-group input:focus {
    border-color: #E30613;
    outline: none;
    box-shadow: 0 0 0 4px rgba(227, 6, 19, 0.1);
    background: #fff;
}

.form-group input::placeholder {
    color: #9CA3AF;
}

/* Auth Button */
.btn-auth {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #E30613 0%, #B8050F 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.3s ease;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(227, 6, 19, 0.3);
    margin-top: 10px;
}

.btn-auth:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(227, 6, 19, 0.4);
}

.btn-auth:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Toggle Auth Links */
.toggle-auth {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: #6B7280;
    padding-top: 20px;
    border-top: 1px solid #E5E7EB;
}

.toggle-auth a {
    color: #E30613;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.toggle-auth a:hover {
    text-decoration: underline;
}

.toggle-auth a:focus-visible,
.back-link:focus-visible,
.btn-auth:focus-visible,
.admin-login-box .back-link:focus-visible {
    outline: 2px solid #f68b1e;
    outline-offset: 4px;
    border-radius: 10px;
}

/* Forgot Password Link */
.forgot-password {
    display: block;
    margin-top: 16px;
    text-align: center;
    font-size: 13px;
    color: #6B7280;
    text-decoration: none;
    transition: color 0.2s ease;
}

.forgot-password:hover {
    color: #E30613;
}

/* Slide Animations */
@keyframes slideInRight {
    from { 
        opacity: 0; 
        transform: translateX(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateX(0); 
    }
}

@keyframes slideInLeft {
    from { 
        opacity: 0; 
        transform: translateX(-30px); 
    }
    to { 
        opacity: 1; 
        transform: translateX(0); 
    }
}

.slide-in-right {
    animation: slideInRight 0.4s ease-out forwards;
}

.slide-in-left {
    animation: slideInLeft 0.4s ease-out forwards;
}

/* Header for Login Page */
.account-header-static {
    position: static !important;
    box-shadow: none !important;
    border-bottom: 1px solid #E5E7EB;
    background: #fff;
}

.header-content-centered {
    justify-content: center !important;
}

/* Responsive */
@media (max-width: 520px) {
    .account-container {
        margin: 30px auto;
        padding: 0 16px;
    }
    
    .auth-box {
        padding: 30px 24px;
        border-radius: 16px;
    }
    
    .auth-box h2 {
        font-size: 24px;
    }
    
    .form-group input {
        padding: 14px 16px;
    }
}
