* { box-sizing: border-box; }
.login-page {
    margin: 0;
    min-height: 100vh;
    min-height: 100svh;
    padding: 40px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #202742;
    background: radial-gradient(ellipse at 50% 0, #eeeaff 0, transparent 60%), #f7f8fc;
    font-family: Cairo, sans-serif;
}
.login-card {
    width: 100%;
    max-width: 460px;
    padding: 38px 40px 40px;
    background: #fff;
    border: 1px solid #e3e5f0;
    border-radius: 28px;
    box-shadow: 0 20px 65px #30365a0c, 0 2px 8px #30365a03;
}
.login-heading { text-align: center; }
.login-brand { display: flex; align-items: center; justify-content: center; gap: 15px; margin-bottom: 30px; }
.login-brand img { display: block; flex-shrink: 0; object-fit: contain; }
.login-brand > span { font-size: 28px; font-weight: 900; letter-spacing: -.8px; }
.login-brand-accent { color: #1861bf; }
.login-heading h1 { margin: 0 0 8px; font-size: 27px; font-weight: 800; line-height: 1.6; }
.login-heading p { margin: 0 auto; max-width: 320px; font-size: 13px; line-height: 1.9; color: #7a8199; }
.login-form { margin-top: 30px; }
.login-field + .login-field { margin-top: 20px; }
.login-field label { display: block; margin-bottom: 9px; font-size: 13px; font-weight: 800; }
.login-input { position: relative; }
.login-input input {
    display: block;
    width: 100%;
    height: 54px;
    padding: 0 46px 0 16px;
    border: 1px solid #dee2ee;
    border-radius: 13px;
    background: #fcfcff;
    color: #202742;
    font: 600 16px Cairo, sans-serif;
    direction: ltr;
    text-align: left;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.login-input input:hover { border-color: #b9b4d9; }
.login-input input:focus { border-color: #7055ed; background: #fff; box-shadow: 0 0 0 4px #7055ed12; }
.login-field-icon { position: absolute; right: 16px; top: 17px; width: 20px; height: 20px; color: #9096ae; pointer-events: none; }
.login-input-password input { padding-left: 50px; }
.login-password-toggle { position: absolute; left: 5px; top: 5px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 9px; color: #8087a0; background: transparent; cursor: pointer; }
.login-password-toggle[hidden] { display: none; }
.login-password-toggle:hover { color: #6950e8; background: #f1edff; }
.login-password-toggle svg { width: 21px; height: 21px; }
.login-eye-slash { display: none; }
.login-password-toggle[aria-pressed="true"] .login-eye-slash { display: block; }
.login-submit { margin-top: 28px; width: 100%; min-height: 54px; display: flex; align-items: center; justify-content: center; gap: 12px; border: 0; border-radius: 13px; color: white; background: #6d4aff; font: 800 15px Cairo, sans-serif; box-shadow: 0 5px 14px #6d4aff20; cursor: pointer; transition: background .15s; }
.login-submit:hover { background: #5c39e8; }
.login-submit svg { width: 20px; height: 20px; }
.login-password-toggle:focus-visible, .login-submit:focus-visible { outline: 3px solid #a99bf3; outline-offset: 3px; }
.login-error { background: #fff2f4; color: #ad3047; border: 1px solid #f5cbd3; padding: 12px 14px; border-radius: 12px; margin-bottom: 20px; font-size: 13px; line-height: 1.8; }
[dir="ltr"] .login-submit svg { transform: scaleX(-1); }
@media (max-width: 480px) {
    .login-page { padding: 24px 16px; }
    .login-card { padding: 30px 24px; border-radius: 24px; }
    .login-brand { margin-bottom: 24px; }
    .login-heading h1 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
    .login-input input, .login-submit { transition: none; }
}
