@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Inter+Tight:wght@500;600;700&family=JetBrains+Mono:wght@400;500&display=swap");

:root,
:root[data-theme="dark"] {
    color-scheme: dark;
    --bg-body: #0b1120;
    --bg-card: #141b2d;
    --bg-hover: #1c2438;
    --bg-muted: #1a2237;
    --t-base: #f1f5f9;
    --t-muted: #94a3b8;
    --t-light: #64748b;
    --t-inverse: #0b1120;
    --border: #222c42;
    --primary: #60a5fa;
    --primary-dark: #3b82f6;
    --primary-soft: #0f2847;
    --primary-ring: rgba(96, 165, 250, 0.24);
    --danger: #f87171;
    --danger-soft: #2b1414;
    --purple: #a78bfa;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg-body);
    color: var(--t-base);
    font-family: Inter, system-ui, "Segoe UI", Ubuntu, Cantarell, "Noto Sans", -apple-system, Roboto, sans-serif;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: -0.003em;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    transition: background-color 0.28s ease, color 0.28s ease;
}

.btn {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    gap: 8px;
    padding: 9px 14px;
    transition: all 0.18s ease;
    white-space: nowrap;
}

.btn svg {
    fill: none;
    height: 14px;
    stroke: currentColor;
    stroke-width: 2;
    width: 14px;
}

.btn--primary {
    background: var(--primary);
    box-shadow: 0 1px 2px var(--primary-ring);
    color: #fff;
}

.btn--primary:hover {
    background: var(--primary-dark);
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.field-label {
    align-items: center;
    color: var(--t-base);
    display: flex;
    font-size: 12px;
    font-weight: 600;
    gap: 6px;
    letter-spacing: -0.005em;
}

.input {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--t-base);
    font-family: inherit;
    font-size: 13px;
    outline: 0;
    padding: 9px 12px;
    transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
    width: 100%;
}

.input::placeholder {
    color: var(--t-light);
}

.input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

.input-icon {
    position: relative;
}

.input-icon .ico {
    color: var(--t-light);
    height: 14px;
    left: 11px;
    pointer-events: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
}

.input-icon .ico svg {
    fill: none;
    height: 100%;
    stroke: currentColor;
    stroke-width: 2;
    width: 100%;
}

.input-icon .input {
    padding-left: 34px;
}

.auth-shell {
    background: var(--bg-body);
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

.auth-aside {
    background: linear-gradient(135deg, var(--primary), var(--purple));
    color: #fff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 40px 48px;
    position: relative;
}

.auth-aside::before,
.auth-aside::after {
    aspect-ratio: 1;
    content: "";
    pointer-events: none;
    position: absolute;
    width: 80%;
}

.auth-aside::before {
    background: radial-gradient(circle, hsla(0, 0%, 100%, 0.18), transparent 60%);
    inset: -40% -20% auto auto;
}

.auth-aside::after {
    background: radial-gradient(circle, hsla(0, 0%, 100%, 0.1), transparent 60%);
    inset: auto auto -30% -20%;
}

.auth-brand {
    align-items: center;
    display: flex;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.auth-brand .logo {
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    background: hsla(0, 0%, 100%, 0.18);
    border: 1px solid hsla(0, 0%, 100%, 0.25);
    border-radius: 9px;
    display: grid;
    height: 36px;
    place-items: center;
    width: 36px;
}

.auth-brand .logo svg {
    height: 20px;
    width: 20px;
}

.auth-brand .name {
    font-family: "Inter Tight", sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.018em;
}

.auth-brand .name-sep {
    color: hsla(0, 0%, 100%, 0.45);
    font-weight: 500;
    margin: 0 2px;
}

.auth-aside-body {
    margin-top: auto;
    max-width: 440px;
    position: relative;
    z-index: 1;
}

.auth-aside-eyebrow {
    color: hsla(0, 0%, 100%, 0.7);
    display: block;
    font-family: "JetBrains Mono", monospace;
    font-size: 10px;
    letter-spacing: 0.18em;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.auth-aside h1 {
    font-family: "Inter Tight", sans-serif;
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.15;
    margin: 0 0 14px;
}

.auth-aside p {
    color: hsla(0, 0%, 100%, 0.85);
    font-size: 14.5px;
    line-height: 1.6;
    margin: 0 0 24px;
}

.auth-quote {
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    background: hsla(0, 0%, 100%, 0.08);
    border: 1px solid hsla(0, 0%, 100%, 0.18);
    border-radius: 12px;
    color: hsla(0, 0%, 100%, 0.9);
    font-size: 13px;
    line-height: 1.6;
    margin-top: 32px;
    padding: 18px 20px;
}

.auth-quote-author {
    align-items: center;
    color: hsla(0, 0%, 100%, 0.75);
    display: flex;
    font-size: 12px;
    gap: 10px;
    margin-top: 14px;
}

.auth-quote-author .av {
    background: hsla(0, 0%, 100%, 0.22);
    border-radius: 50%;
    display: grid;
    font-size: 11px;
    font-weight: 600;
    height: 28px;
    place-items: center;
    width: 28px;
}

.auth-aside-footer {
    color: hsla(0, 0%, 100%, 0.55);
    display: flex;
    font-family: "JetBrains Mono", monospace;
    font-size: 10px;
    gap: 18px;
    letter-spacing: 0.06em;
    margin-top: auto;
    padding-top: 24px;
    position: relative;
    z-index: 1;
}

.auth-main {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 32px 48px;
}

.auth-card {
    margin: auto;
    max-width: 400px;
    padding: 8px 0;
    width: 100%;
}

.auth-card h2 {
    color: var(--t-base);
    font-family: "Inter Tight", sans-serif;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.022em;
    margin: 0 0 6px;
}

.auth-card .sub {
    color: var(--t-muted);
    font-size: 13.5px;
    line-height: 1.55;
    margin: 0 0 24px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-alert {
    background: var(--danger-soft);
    border: 1px solid color-mix(in srgb, var(--danger) 25%, transparent);
    border-radius: 10px;
    color: var(--danger);
    font-size: 13px;
    font-weight: 500;
    padding: 10px 12px;
}

.auth-submit {
    justify-content: center;
    margin-top: 4px;
    width: 100%;
}

.auth-submit.btn {
    padding: 11px 14px;
}

@media (max-width: 900px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-aside {
        display: none;
    }

    .auth-main {
        padding: 24px 20px;
    }
}
