:root {
    color-scheme: light;
    font-family: "Roboto Variable", system-ui, sans-serif;
    color: #1f2937;
    background: #f5f6f8;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
}
button,
input {
    font: inherit;
}
.auth-shell {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    background: radial-gradient(ellipse at 50% 0%, #e8efff 0%, transparent 55%);
}
.auth-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 650;
    text-decoration: none;
    color: #1f2937;
    margin-bottom: 30px;
}
.auth-brand svg {
    width: 28px;
    height: 28px;
    fill: #1d63ed;
}
.auth-card {
    width: 100%;
    max-width: 430px;
    border: 1px solid #e6e9ef;
    border-radius: 18px;
    background: #fff;
    padding: 34px;
    box-shadow: 0 12px 42px #182d5610;
}
.auth-mark {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(145deg, #407dff, #1d63ed);
    box-shadow: 0 5px 14px #1d63ed20;
    margin-bottom: 24px;
}
.auth-mark svg {
    width: 28px;
    height: 28px;
    fill: #fff;
}
.auth-eyebrow {
    font-size: 10px;
    letter-spacing: 1.3px;
    font-weight: 650;
    color: #7a889e;
}
h1 {
    margin: 10px 0 8px;
    font-size: 27px;
    letter-spacing: -0.6px;
    font-weight: 650;
}
.auth-subtitle {
    font-size: 13px;
    color: #778294;
    margin: 0 0 28px;
    line-height: 1.7;
}
label {
    display: block;
    font-size: 12px;
    font-weight: 550;
    margin: 18px 0 8px;
}
input:not([type="hidden"]) {
    display: block;
    width: 100%;
    height: 44px;
    border: 1px solid #d9dfe8;
    border-radius: 8px;
    padding: 0 13px;
    background: #fff;
    color: #1f2937;
    font-size: 14px;
    transition:
        border-color 0.15s,
        box-shadow 0.15s;
}
input::placeholder {
    color: #9aa4b3;
}
input:focus {
    outline: none;
    border-color: #1d63ed;
    box-shadow: 0 0 0 3px #1d63ed14;
}
button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    border: 0;
    border-radius: 8px;
    background: #1d63ed;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 13px 16px;
    cursor: pointer;
    margin-top: 24px;
    box-shadow: 0 3px 9px #1d63ed22;
}
button:hover {
    background: #1654d0;
}
button:focus-visible,
a:focus-visible {
    outline: 3px solid #8ab0ff;
    outline-offset: 3px;
}
.auth-session {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-top: 22px;
    margin-top: 24px;
    border-top: 1px solid #edf0f4;
    color: #8893a3;
    font-size: 10px;
}
.auth-session > span:last-child {
    margin-left: auto;
}
.auth-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #1bb18a;
}
.auth-footer {
    color: #94a0b0;
    font-size: 11px;
    margin: 24px 0 0;
    text-align: center;
}
.auth-error {
    color: #b42332;
    background: #fff2f3;
    border: 1px solid #ffdce0;
    border-radius: 8px;
    padding: 12px;
    font-size: 12px;
    line-height: 1.6;
}
.auth-back {
    display: block;
    color: #607088;
    text-align: center;
    font-size: 13px;
    margin-top: 20px;
    text-decoration: none;
}
@media (max-width: 480px) {
    .auth-card {
        padding: 25px;
    }
    .auth-session {
        font-size: 9px;
    }
}
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }
}
.setup-shell {
    width: 100%;
}
.setup-card {
    width: 100%;
    max-width: 640px;
}
.setup-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 20px;
}
.setup-help {
    font-size: 12px;
    line-height: 1.7;
    color: #64748b;
    margin: 14px 0;
}
.setup-progress {
    padding: 32px 12px;
    text-align: center;
}
.setup-progress[hidden],
#setup-form[hidden],
#setup-error[hidden] {
    display: none;
}
.setup-spinner {
    width: 44px;
    height: 44px;
    margin: 0 auto 24px;
    border: 4px solid #e0e7ff;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: setup-spin 1s linear infinite;
}
@keyframes setup-spin {
    to {
        transform: rotate(360deg);
    }
}
@media (max-width: 600px) {
    .setup-grid {
        grid-template-columns: 1fr;
    }
}
@media (prefers-reduced-motion: reduce) {
    .setup-spinner {
        animation-duration: 3s;
    }
}

.auth-language {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 14px;
    color: #64748b;
}
.auth-language a {
    color: inherit;
    text-decoration: none;
    padding: 8px;
}
.auth-language a[aria-current="true"] {
    color: #1d63ed;
    font-weight: 600;
}
.auth-language a:focus-visible {
    outline: 2px solid #1d63ed;
    outline-offset: 2px;
}
