:root {
    --auth-blue: #2f6bff;
    --auth-blue-hover: #1f5af0;
    --auth-ink: #1c2434;
    --auth-muted: #8b93a7;
    --auth-card: #e8ebf3;
    --auth-line: #d5dbe8;
    --auth-gold: #f5c451;
    --auth-font: "Segoe UI", system-ui, sans-serif;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    color: var(--auth-ink);
    font-family: var(--auth-font);
    background: #16348f;
}

.auth-screen {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 16px 28px;
    overflow: hidden;
    background:
        radial-gradient(ellipse 48% 62% at 8% 46%, rgba(78, 132, 235, 0.5), transparent 64%),
        radial-gradient(ellipse 40% 52% at 94% 54%, rgba(5, 14, 58, 0.78), transparent 66%),
        linear-gradient(165deg, #1d4ec4 0%, #173fae 46%, #12348f 100%);
}

.auth-screen::before,
.auth-screen::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(50px);
    pointer-events: none;
}

.auth-screen::before {
    width: 420px;
    height: 420px;
    left: -80px;
    top: 12%;
    background: rgba(120, 168, 255, 0.35);
}

.auth-screen::after {
    width: 480px;
    height: 480px;
    right: -120px;
    bottom: 8%;
    background: rgba(8, 22, 90, 0.55);
}

.auth-card,
.auth-footnote {
    position: relative;
    z-index: 1;
}

.auth-card {
    width: min(100%, 392px);
    padding: 32px 28px 22px;
    border-radius: 18px;
    background: var(--auth-card);
    box-shadow: 0 24px 60px rgba(8, 24, 72, 0.28);
}

.auth-logo {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin: 0 auto 12px;
    border-radius: 14px;
    background: var(--auth-blue);
    box-shadow: 0 8px 18px rgba(47, 107, 255, 0.35);
}

.auth-brand {
    margin: 0;
    text-align: center;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--auth-gold);
}

.auth-brand span {
    color: var(--auth-blue);
}

.auth-subtitle {
    margin: 6px 0 22px;
    text-align: center;
    color: var(--auth-muted);
    font-size: 0.84rem;
}

.auth-alert {
    margin: 0 0 14px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.86rem;
}

.auth-alert p {
    margin: 0;
}

.auth-alert p + p {
    margin-top: 4px;
}

.auth-alert-error {
    background: #fde8e8;
    color: #9b1c1c;
}

.auth-alert-success {
    background: #e7f6ee;
    color: #146c43;
}

.auth-form {
    display: grid;
    gap: 14px;
}

.auth-field {
    display: grid;
    gap: 6px;
}

.auth-label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.auth-field label {
    color: #2a3344;
    font-size: 0.84rem;
    font-weight: 700;
}

.auth-label-row a,
.auth-switch a {
    color: var(--auth-blue);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
}

.auth-label-row a:hover,
.auth-switch a:hover {
    text-decoration: underline;
}

.auth-field input {
    width: 100%;
    height: 42px;
    padding: 0 14px;
    border: 1px solid #e3e7f0;
    border-radius: 8px;
    background: #fff;
    color: var(--auth-ink);
    font: inherit;
    font-size: 0.95rem;
}

.auth-field input::placeholder {
    color: #b0b7c6;
}

.auth-field input:focus {
    outline: none;
    border-color: #8eb0ff;
    box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.15);
}

.auth-password {
    position: relative;
}

.auth-password input {
    padding-right: 42px;
}

.auth-eye {
    position: absolute;
    top: 50%;
    right: 8px;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #a0a8b8;
    cursor: pointer;
    transform: translateY(-50%);
}

.auth-eye:hover {
    color: #667085;
}

.auth-submit {
    height: 44px;
    margin-top: 4px;
    border: 0;
    border-radius: 8px;
    background: var(--auth-blue);
    color: #fff;
    font: inherit;
    font-size: 0.98rem;
    font-weight: 700;
    cursor: pointer;
}

.auth-submit:hover {
    background: var(--auth-blue-hover);
}

.auth-switch {
    margin: 16px 0 4px;
    text-align: center;
    color: #7d8698;
    font-size: 0.84rem;
}

.auth-footnote {
    margin: 22px 0 0;
    color: rgba(226, 234, 255, 0.72);
    font-size: 0.8rem;
}

@media (max-width: 480px) {
    .auth-card {
        padding: 26px 18px 18px;
    }
}
