/* Login — branded split layout */

.login-page {
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    grid-template-columns: minmax(420px, 1.05fr) minmax(460px, 0.95fr);
    background: var(--surface);
}

.login-showcase {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(32px, 5vw, 72px);
    overflow: hidden;
    color: #fff;
    background: var(--brand-ink);
}

.login-showcase::before,
.login-showcase::after {
    content: '';
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    pointer-events: none;
}

.login-showcase::before {
    width: 560px;
    height: 560px;
    top: -340px;
    right: -120px;
    background: radial-gradient(circle, rgba(240, 54, 140, 0.62), rgba(240, 54, 140, 0) 68%);
}

.login-showcase::after {
    width: 680px;
    height: 680px;
    bottom: -460px;
    left: -180px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.7), rgba(37, 99, 235, 0) 68%);
}

.login-showcase__grid {
    position: absolute;
    z-index: -2;
    inset: 0;
    opacity: 0.8;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to bottom, #000, transparent 88%);
}

.login-showcase__brand {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 14px;
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.login-showcase__brand:focus-visible {
    border-radius: 10px;
    outline: 3px solid #60a5fa;
    outline-offset: 5px;
}

.login-showcase__mark {
    width: 48px;
    height: 48px;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 5px 5px 0 rgba(240, 54, 140, 0.85);
}

.login-showcase__content {
    width: min(100%, 640px);
    margin-block: 64px;
}

.login-showcase__eyebrow {
    margin: 0 0 20px;
    color: #f9a8d4;
    font-size: 0.75rem;
    font-weight: 850;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.login-showcase h1 {
    margin: 0;
    color: #fff;
    font-family: var(--font-display);
    font-size: clamp(2.75rem, 5vw, 5.6rem);
    font-weight: 800;
    letter-spacing: -0.055em;
    line-height: 0.98;
    text-wrap: balance;
}

.login-showcase h1 em {
    color: #a78bfa;
    font-style: normal;
}

.login-showcase__content > p:not(.login-showcase__eyebrow) {
    max-width: 580px;
    margin: 28px 0 0;
    color: #d8d2e8;
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    line-height: 1.6;
}

.login-showcase__signals {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin: 48px 0 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.14);
    list-style: none;
}

.login-showcase__signals li {
    min-height: 122px;
    padding: 20px;
    color: #eeeaf7;
    background: rgba(11, 7, 23, 0.68);
    font-size: 0.82rem;
    font-weight: 650;
    line-height: 1.45;
}

.login-showcase__signals span {
    display: block;
    margin-bottom: 24px;
    color: #60a5fa;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 800;
}

.login-showcase__footer {
    margin: 0;
    color: #958ba9;
    font-size: 0.78rem;
}

.login-access {
    min-width: 0;
    display: grid;
    place-items: center;
    padding: clamp(32px, 6vw, 88px);
    background: #fff;
}

.login-wrapper {
    width: min(100%, 430px);
}

.login-brand {
    margin-bottom: 32px;
}

.login-brand__row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 44px;
}

.login-brand__row > span {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--brand-pink);
}

.login-brand__edition,
.login-brand__name {
    margin: 0;
    font-size: 0.6875rem;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.login-brand__edition { color: var(--brand-violet); }
.login-brand__name { color: var(--brand-blue); }

.login-brand__title {
    margin: 0 0 10px;
    color: var(--brand-ink);
    font-family: var(--font-display);
    font-size: clamp(2rem, 3vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1.05;
}

.login-brand__sub {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.55;
}

.login-card {
    padding-top: 28px;
    border-top: 1px solid var(--stroke);
}

.login-error {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    padding: 12px 14px;
    border-left: 4px solid #dc2626;
    color: #b91c1c;
    background: #fef2f2;
    font-size: 0.875rem;
}

.login-error[hidden] { display: none; }
.login-error svg { flex: 0 0 auto; margin-top: 1px; }

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.login-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.login-field__label {
    color: var(--text-soft);
    font-size: 0.8125rem;
    font-weight: 750;
}

.login-field__input {
    width: 100%;
    min-height: 48px;
    padding: 11px 14px;
    border: 1px solid var(--stroke-strong);
    border-radius: 8px;
    color: var(--text);
    background: #fff;
    font: inherit;
    font-size: 0.9375rem;
    transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.login-field__input::placeholder { color: #8b829e; }
.login-field__input:hover { border-color: #9e91ba; }

.login-field__input:focus-visible {
    border-color: var(--brand-violet);
    outline: none;
    box-shadow: 0 0 0 3px rgba(91, 33, 182, 0.14);
}

.login-remember {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.875rem;
    cursor: pointer;
}

.login-remember input {
    width: 17px;
    height: 17px;
    accent-color: var(--brand-violet);
}

.login-submit,
.login-passkey {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: 8px;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
    touch-action: manipulation;
}

.login-submit {
    border: 1px solid var(--brand-ink);
    color: #fff;
    background: var(--brand-ink);
    box-shadow: 4px 4px 0 var(--brand-pink);
    transition: color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.login-submit:hover {
    background: var(--brand-violet);
    box-shadow: 6px 6px 0 var(--brand-pink);
    transform: translate(-2px, -2px);
}

.login-submit:active {
    box-shadow: 2px 2px 0 var(--brand-pink);
    transform: translate(2px, 2px);
}

.login-submit:focus-visible,
.login-passkey:focus-visible,
.login-back a:focus-visible {
    outline: 3px solid #60a5fa;
    outline-offset: 3px;
}

.login-submit:disabled,
.login-passkey:disabled {
    opacity: 0.58;
    cursor: not-allowed;
    transform: none;
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 26px 0;
    color: #8b829e;
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--stroke);
}

.login-passkey {
    border: 1px solid var(--stroke-strong);
    color: var(--brand-ink);
    background: #fff;
    transition: border-color 150ms ease, color 150ms ease, background-color 150ms ease;
}

.login-passkey:hover {
    border-color: var(--brand-violet);
    color: var(--brand-violet);
    background: var(--surface-muted);
}

.login-passkey__hint {
    margin: 10px 0 0;
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.45;
    text-align: center;
}

.login-back {
    margin: 30px 0 0;
    font-size: 0.8125rem;
    text-align: center;
}

.login-back a {
    color: var(--brand-blue);
    font-weight: 700;
    text-decoration: none;
    touch-action: manipulation;
}

.login-back a:hover { color: var(--brand-violet); text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 1060px) {
    .login-page { grid-template-columns: minmax(360px, 0.88fr) minmax(420px, 1.12fr); }
    .login-showcase__signals { grid-template-columns: 1fr; }
    .login-showcase__signals li { min-height: 0; }
    .login-showcase__signals span { display: inline; margin: 0 12px 0 0; }
}

@media (max-width: 780px) {
    .login-page { display: block; background: #fff; }

    .login-showcase {
        min-height: 0;
        padding: 24px 20px 64px;
    }

    .login-showcase__content { margin: 64px 0 0; }
    .login-showcase h1 { max-width: 570px; font-size: clamp(2.6rem, 12vw, 4.4rem); }
    .login-showcase__signals, .login-showcase__footer { display: none; }

    .login-access {
        position: relative;
        z-index: 2;
        margin-top: -28px;
        padding: 34px 20px max(40px, env(safe-area-inset-bottom));
        border-radius: 28px 28px 0 0;
    }

    .login-brand__row { display: none; }
}

@media (max-width: 480px) {
    .login-showcase { padding-inline: 18px; }
    .login-showcase__brand { font-size: 0.9rem; }
    .login-showcase__mark { width: 42px; height: 42px; }
    .login-showcase__content { margin-top: 48px; }
    .login-showcase__content > p:not(.login-showcase__eyebrow) { font-size: 0.95rem; }
    .login-access { padding-inline: 18px; }
    .login-brand { margin-bottom: 26px; }
    .login-card { padding-top: 24px; }
}

@media (prefers-reduced-motion: reduce) {
    .login-submit,
    .login-field__input,
    .login-passkey { transition: none; }
}
