*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body.auth-page {
    font-family: 'Cairo', system-ui, sans-serif;
    min-height: 100vh;
    color: #0f172a;
    background: radial-gradient(circle at 15% 10%, rgba(37, 99, 235, .10), transparent 40%),
                radial-gradient(circle at 85% 90%, rgba(147, 51, 234, .10), transparent 40%),
                #f1f5f9;
}
a { color: inherit; text-decoration: none; }
.auth-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem 1rem; gap: 1.5rem; }
.auth-brand { display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.auth-brand img { height: 54px; width: auto; }
.auth-brand span { font-size: .8rem; letter-spacing: .35em; color: #64748b; font-weight: 600; }
.auth-card { width: 100%; max-width: 440px; background: #fff; border-radius: 22px; padding: 2rem; box-shadow: 0 30px 60px -25px rgba(15, 23, 42, .25); border: 1px solid #e2e8f0; }
.auth-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.75rem; }
.lang-toggle { display: inline-flex; border: 1px solid #e2e8f0; border-radius: 10px; padding: 3px; background: #f8fafc; }
.lang-toggle a { padding: .3rem .8rem; border-radius: 8px; font-size: .85rem; font-weight: 700; color: #475569; }
.lang-toggle a.active { background: #2563eb; color: #fff; }
.secure { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; color: #64748b; }
.secure i { width: 8px; height: 8px; border-radius: 50%; background: #06b6d4; box-shadow: 0 0 0 4px rgba(6, 182, 212, .15); }
.auth-card h1 { font-size: 1.7rem; color: #06123d; margin-bottom: .25rem; }
.auth-sub { color: #64748b; margin-bottom: 1.5rem; }
.auth-alert { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; padding: .7rem 1rem; border-radius: 12px; font-size: .9rem; font-weight: 600; margin-bottom: 1.25rem; }
form label { display: block; font-weight: 700; font-size: .95rem; margin: 0 0 .4rem; color: #0f172a; }
form input[type="email"], form input[type="password"], form input[type="text"] {
    width: 100%; height: 50px; border: 1px solid #e2e8f0; background: #f1f5f9; border-radius: 12px; padding: 0 1rem; font-family: inherit; font-size: 1rem; color: #0f172a; margin-bottom: 1.1rem; transition: border-color .2s, box-shadow .2s, background .2s; text-align: start;
}
form input:focus { outline: none; border-color: #2563eb; background: #fff; box-shadow: 0 0 0 4px rgba(37, 99, 235, .12); }
.password-field { position: relative; }
.password-field input { padding-inline-end: 3rem; }
.eye { position: absolute; inset-inline-end: .6rem; top: 7px; width: 36px; height: 36px; border: 0; background: none; cursor: pointer; font-size: 1.1rem; border-radius: 8px; }
.eye:hover { background: #e2e8f0; }
.auth-row { display: flex; align-items: center; justify-content: space-between; margin: -.2rem 0 1.4rem; font-size: .9rem; }
.remember { display: inline-flex !important; align-items: center; gap: .45rem; margin: 0 !important; font-weight: 600 !important; color: #475569 !important; cursor: pointer; }
.remember input { width: 17px; height: 17px; accent-color: #2563eb; }
.forgot { color: #1d4ed8; font-weight: 700; }
.forgot:hover { text-decoration: underline; }
.auth-submit { width: 100%; height: 52px; border: 0; border-radius: 12px; cursor: pointer; font-family: inherit; font-size: 1.05rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 45%, #7c3aed 100%); box-shadow: 0 14px 28px -12px rgba(37, 99, 235, .7); transition: transform .2s, box-shadow .2s; }
.auth-submit:hover { transform: translateY(-2px); box-shadow: 0 18px 32px -12px rgba(37, 99, 235, .8); }
.auth-back { color: #64748b; font-weight: 600; font-size: .9rem; }
.auth-back:hover { color: #2563eb; }
.dash-card { text-align: center; }
.dash-card .role { display: inline-block; background: #eff6ff; color: #1d4ed8; font-weight: 700; padding: .25rem .9rem; border-radius: 999px; font-size: .85rem; margin: .75rem 0 1.25rem; }
.logout-btn { background: #fff; color: #b91c1c; border: 1px solid #fecaca; box-shadow: none; }
.logout-btn:hover { background: #fef2f2; box-shadow: none; }
@media (max-width: 480px) { .auth-card { padding: 1.5rem 1.25rem; } .auth-brand img { height: 42px; } }
.auth-success { background: #ecfdf5; border: 1px solid #a7f3d0; color: #047857; padding: .7rem 1rem; border-radius: 12px; font-size: .9rem; font-weight: 600; margin-bottom: 1.25rem; }