.auth-page {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    padding: clamp(28px, 7vh, 72px) 20px 40px;
    background: radial-gradient(ellipse at 50% 0, rgba(255, 215, 0, .035), transparent 55%), #08090a;
    color: #f4f4f5;
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}
.auth-page *, .auth-page *::before, .auth-page *::after { box-sizing: border-box; }
.auth-page [hidden] { display: none !important; }
.auth-shell { width: min(420px, 100%); margin: 0 auto; }
.auth-back {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 40px;
    margin-bottom: 18px;
    color: #a6a8ad;
    font-size: 14px;
    text-decoration: none;
}
.auth-back:hover { color: #f4f4f5; }
.auth-back span { font-size: 20px; }
.auth-card {
    width: 100%;
    padding: 30px;
    background: #111214;
    border: 1px solid #292a2e;
    border-radius: 18px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, .22);
}
.auth-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 24px;
    margin-bottom: 26px;
    border-bottom: 1px solid #25262a;
    color: #FFD700;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
}
.auth-brand span { color: #888c93; font-size: 12px; font-weight: 400; }
.auth-card h1 { margin: 0 0 6px; color: #f4f4f5; font-size: 28px; line-height: 1.25; letter-spacing: -.5px; }
.auth-intro { margin: 0 0 26px; color: #969aa2; font-size: 14px; line-height: 1.6; }
.auth-form { display: grid; gap: 19px; }
.auth-field, .auth-code, .auth-number { display: grid; min-width: 0; gap: 8px; color: #d5d6da; font-size: 13px; font-weight: 600; }
.auth-field input, .auth-number input, .auth-code select, .auth-submit {
    display: block;
    width: 100%;
    min-width: 0;
    height: 48px;
    margin: 0;
    border: 1px solid #34363c;
    border-radius: 10px;
    padding: 0 13px;
    background: #191a1e;
    color: #f4f4f5;
    font: inherit;
    font-size: 16px;
    font-weight: 400;
    transition: border-color .15s, background-color .15s;
}
.auth-field input::placeholder, .auth-number input::placeholder { color: #656b76; opacity: 1; }
.auth-phone { display: grid; grid-template-columns: 94px minmax(0, 1fr); gap: 12px; align-items: start; }
.auth-code select { direction: ltr; padding: 0 9px; color-scheme: dark; font-weight: 600; }
.auth-number input { direction: ltr; }
.auth-phone-hint { margin: 8px 0 0; color: #868b94; font-size: 11px; line-height: 1.5; font-weight: 400; }
.auth-phone-hint [data-country-name] { color: #afb2b9; }
.auth-password { display: block; position: relative; min-width: 0; }
.auth-password input { padding-right: 50px; }
.auth-eye {
    position: absolute;
    top: 50%;
    right: 3px;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #969ba4;
    font-size: 15px;
    cursor: pointer;
}
.auth-eye:hover { color: #FFD700; background: rgba(255, 255, 255, .035); }
.auth-submit { margin-top: 3px; border-color: #FFD700; background: #FFD700; color: #111214; font-size: 15px; font-weight: 700; cursor: pointer; }
.auth-submit:hover { border-color: #ffe142; background: #ffe142; }
.auth-error { margin: -9px 0 0; color: #f79a9a; font-size: 12px; line-height: 1.5; }
.auth-switch { margin: 24px 0 0; padding-top: 21px; border-top: 1px solid #25262a; color: #989da6; font-size: 13px; text-align: center; }
.auth-switch a { margin-left: 3px; color: #FFD700; font-weight: 600; text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }
.auth-card input:focus, .auth-card select:focus { outline: none; border-color: #c3a51b; box-shadow: 0 0 0 3px rgba(255, 215, 0, .08); }
.auth-card a:focus-visible, .auth-page button:focus-visible, .auth-back:focus-visible { outline: 2px solid #FFD700; outline-offset: 4px; }
@media (max-width: 480px) {
    .auth-page { padding: 26px 18px 32px; }
    .auth-card { padding: 25px 22px; border-radius: 16px; }
    .auth-back { margin-bottom: 12px; }
    .auth-brand { padding-bottom: 21px; margin-bottom: 23px; }
    .auth-card h1 { font-size: 26px; }
    .auth-intro { margin-bottom: 23px; }
    .auth-phone { grid-template-columns: 88px minmax(0, 1fr); gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    .auth-page * { transition: none !important; }
}
