* {
    box-sizing: border-box;
}

html {
    color: #e5e7eb;
    background: #07111f;
    color-scheme: dark;
}

body {
    min-width: 320px;
    min-height: 100svh;
    background:
        radial-gradient(circle at 50% 10%, rgba(37, 99, 235, .2), transparent 28rem),
        #07111f;
}

body,
input,
button {
    font: inherit;
}

.auth-shell {
    display: grid;
    width: min(100%, 520px);
    min-height: 100svh;
    padding: 24px;
    margin: 0 auto;
    align-content: center;
    gap: 18px;
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    justify-self: center;
    gap: 10px;
    color: #f8fafc;
    font-weight: 700;
    text-decoration: none;
}

.auth-brand > span {
    display: grid;
    width: 38px;
    height: 38px;
    color: #ffffff;
    background: #2563eb;
    border-radius: 10px;
    place-items: center;
}

.form {
    width: 100%;
    padding: clamp(22px, 6vw, 36px);
    color: #e5e7eb;
    background: #0f172a;
    border: 1px solid #243244;
    border-radius: 16px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .35);
}

.form-eyebrow {
    margin: 0 0 6px;
    color: #60a5fa;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-align: center;
    text-transform: uppercase;
}

h1.login-title {
    margin: 0;
    color: #f8fafc;
    font-size: clamp(1.7rem, 7vw, 2.25rem);
    line-height: 1.15;
    text-align: center;
}

.form-description {
    margin: 9px 0 24px;
    color: #94a3b8;
    font-size: .92rem;
    text-align: center;
}

.form-field {
    display: grid;
    gap: 7px;
    margin-bottom: 16px;
    color: #cbd5e1;
    font-size: .86rem;
    font-weight: 700;
}

.login-input {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    color: #f8fafc;
    background: #111827;
    border: 1px solid #475569;
    border-radius: 9px;
    outline: none;
}

.login-input::placeholder {
    color: #64748b;
}

.login-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .2);
}

.login-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    padding: 10px 16px;
    color: #ffffff;
    background: #2563eb;
    border: 1px solid #3b82f6;
    border-radius: 9px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.login-button:hover,
.login-button:focus-visible {
    background: #1d4ed8;
}

.link {
    margin: 18px 0 0;
    color: #94a3b8;
    font-size: .88rem;
    text-align: center;
}

.link a:not(.login-button) {
    color: #93c5fd;
    font-weight: 700;
}

.form-error,
.form-success {
    padding: 10px 12px;
    margin: 18px 0;
    border: 1px solid;
    border-radius: 9px;
    font-size: .88rem;
    line-height: 1.4;
}

.form-error {
    color: #fecaca;
    background: rgba(127, 29, 29, .35);
    border-color: #7f1d1d;
}

.form-success {
    color: #bbf7d0;
    background: rgba(20, 83, 45, .35);
    border-color: #166534;
}

.form-result {
    text-align: center;
}

.result-button {
    margin-top: 4px;
}

@media (max-width: 520px) {
    .auth-shell {
        padding: 12px;
    }

    .form {
        padding: 22px 18px;
        border-radius: 13px;
    }
}
