/* Sign-in page on the Blazing UI tokens (ui/tokens.css). */
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font); font-size: 14px; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; flex: none; }

.shell { display: grid; grid-template-columns: minmax(340px, 46%) 1fr; min-height: 100vh; }

.brand {
    position: relative; overflow: hidden; color: #fff; padding: 64px 56px; display: flex; flex-direction: column; justify-content: center;
    background: radial-gradient(circle at 85% 110%, rgba(255, 106, 0, .55), transparent 42%),
                radial-gradient(circle at 10% 0%, rgba(255, 255, 255, .14), transparent 40%),
                linear-gradient(150deg, #312e81 0%, #4f46e5 45%, #7c3aed 100%);
}
.brand::after {
    content: ""; position: absolute; inset: 0; opacity: .12; pointer-events: none;
    background-image: radial-gradient(rgba(255, 255, 255, .9) 1px, transparent 1px); background-size: 22px 22px;
    mask-image: linear-gradient(180deg, transparent, #000 40%, transparent);
}
.brand > * { position: relative; z-index: 1; }
.brand-logo { width: min(400px, 90%); height: auto; }
.brand-lead { margin: 28px 0 0; font-size: 26px; font-weight: 750; line-height: 1.25; letter-spacing: -.02em; max-width: 420px; }
.brand-points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.brand-points li { display: flex; align-items: center; gap: 12px; color: rgba(255, 255, 255, .88); font-weight: 550; }
.brand-points .ic {
    width: 34px; height: 34px; padding: 8px; border-radius: 11px; background: rgba(255, 255, 255, .14);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
}
.brand-glow { position: absolute; right: -120px; bottom: -120px; width: 360px; height: 360px; border-radius: 50%; background: var(--flame); filter: blur(90px); opacity: .45; z-index: 0; }

.panel { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 16px; }
.panel-logo { display: none; height: 40px; margin-bottom: 22px; }
.card {
    width: 100%; max-width: 420px; padding: 32px 32px 28px; border-radius: var(--r-lg); background: var(--surface);
    border: 1px solid var(--line); box-shadow: var(--shadow-3); position: relative; overflow: hidden;
}
.card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--brand-1), var(--brand-2) 70%, var(--flame)); }
h1 { font-size: 26px; font-weight: 780; letter-spacing: -.02em; margin: 0 0 4px; }
label { display: block; font-size: 12.5px; font-weight: 650; color: var(--text-2); margin: 16px 0 6px; }
input, select {
    width: 100%; height: 46px; padding: 0 14px; font: inherit; font-size: 15px; color: var(--text);
    border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface);
    transition: border-color .15s, box-shadow .15s;
}
select {
    appearance: none; padding-right: 38px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237a819f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center;
}
input:focus, select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--focus); }
.pw { position: relative; }
.pw input { padding-right: 70px; }
.pw-toggle {
    position: absolute; right: 7px; top: 7px; height: 32px; padding: 0 12px; border: 0; border-radius: 8px;
    background: var(--surface-3); color: var(--text-2); font: inherit; font-size: 12px; font-weight: 650; cursor: pointer;
}
.primary {
    width: 100%; height: 48px; margin-top: 24px; border: 0; border-radius: var(--r-sm); cursor: pointer;
    background: var(--brand-grad); color: #fff; font: inherit; font-size: 16px; font-weight: 700;
    box-shadow: var(--shadow-brand); transition: filter .15s, transform .08s;
}
.primary:hover { filter: brightness(1.07); }
.primary:active { transform: translateY(1px); }
.primary:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--focus); }
.primary[disabled] { opacity: .7; cursor: wait; }
.alert { background: var(--bad-soft); color: var(--bad); border: 1px solid color-mix(in srgb, var(--bad) 25%, transparent); border-radius: var(--r-sm); padding: 10px 12px; font-size: 14px; margin: 12px 0 4px; }
.alert:empty, .validation-summary-valid { display: none; }
.alert ul { margin: 0; padding-left: 18px; }
.field-error { display: block; color: var(--bad); font-size: 12px; margin-top: 4px; }
.hint { color: var(--text-3); margin: 0 0 6px; }
.otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 18px; }
.otp-box { text-align: center; font-family: var(--mono); font-size: 22px; font-weight: 700; padding: 0; height: 56px; }
.link { display: block; text-align: center; margin-top: 16px; color: var(--brand); text-decoration: none; font-size: 14px; font-weight: 600; }
.foot { color: var(--text-3); font-size: 12px; margin-top: 24px; }

.logo-dark { display: none !important; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .panel-logo.logo-full { display: none !important; }
    :root:not([data-theme="light"]) .panel-logo.logo-dark { display: none; }
}
:root[data-theme="dark"] .panel-logo.logo-full { display: none !important; }

@media (max-width: 860px) {
    .shell { grid-template-columns: 1fr; }
    .brand { display: none; }
    .panel { justify-content: flex-start; padding-top: 44px; }
    .panel-logo.logo-full { display: block; }
    .card { padding: 26px 20px 22px; box-shadow: var(--shadow-2); }
    @media (prefers-color-scheme: dark) {
        :root:not([data-theme="light"]) .panel-logo.logo-dark { display: block !important; }
    }
    :root[data-theme="dark"] .panel-logo.logo-dark { display: block !important; }
}
