/* The sign-in split layout (Components/Account/Shared/AuthSplitLayout.razor): the form on the theme's
   ground on the left, the brand panel on the right. Every Identity account page
   outside Account/Manage renders in it. */

.auth-shell {
    display: grid;
    grid-template-columns: minmax(420px, 560px) 1fr;
    min-height: 100vh;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
}

.auth-form-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--space-8) 64px;
    max-width: 560px;
}

.auth-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 56px;
}

.auth-brand {
    display: inline-flex;
    text-decoration: none;
}

.auth-brand .brand-logo img { height: 2.6rem; }

.auth-title { font-size: 32px; margin-bottom: 8px; }
.auth-subtitle { color: var(--color-muted); font-size: 14px; margin-bottom: 36px; }

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

.auth-row { display: flex; align-items: center; justify-content: space-between; margin-top: -4px; }

.auth-check-label { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; margin: 0; }

.auth-check {
    appearance: none;
    width: 16px;
    height: 16px;
    flex: none;
    margin: 0;
    border-radius: 4px;
    border: 1.5px solid var(--color-divider);
    background: var(--color-surface);
    cursor: pointer;
    position: relative;
}
.auth-check:checked { border-color: var(--color-accent); background: var(--color-accent); }
.auth-check:checked::after {
    content: "";
    position: absolute;
    left: 4px; top: 1px;
    width: 4px; height: 8px;
    border: solid var(--color-bg);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.auth-check:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

.auth-hint { font-size: 12px; margin-top: 4px; color: var(--color-muted); }

.auth-divider { display: flex; align-items: center; gap: 12px; margin: 4px 0; color: var(--color-muted); font-size: 12px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--color-divider); }

.auth-link-row { font-size: 13px; margin-top: 28px; color: var(--color-muted); }
.auth-link-row p { margin: 6px 0; }

/* The template's other account pages (forgot password, confirmation, lockout, 2FA…) keep their
   own markup: a Bootstrap grid sized for a full-width page, and a 42px h1. Inside the
   form column the grid collapses to one column and the heading matches .auth-title. */
.auth-form-col .row > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
}

.auth-form-col h1:not(.auth-title) { font-size: 32px; margin-bottom: 12px; }
.auth-form-col h2 { font-size: 18px; }

/* The brand panel: ink, the product's line in white, two fine orbits in a corner — the
   brand's motif, used once. The same in both themes (it is a dark ground either way), so its
   colours are fixed rather than theme tokens. */
.auth-side {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 64px;
    background: #202837;
    color: #ffffff;
}

.auth-orbits {
    position: absolute;
    right: -12%;
    bottom: -14%;
    width: min(78%, 640px);
    height: auto;
    fill: none;
    stroke: #087f80;
    stroke-width: 2;
    pointer-events: none;
}

.auth-side-message {
    position: relative;
    max-width: 460px;
}

.auth-side-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(28px, 2.6vw, 40px);
    line-height: 1.15;
    letter-spacing: -0.015em;
    margin: 0 0 16px;
}

.auth-side-sub {
    margin: 0;
    font-size: 16px;
    color: #c9d2dc;
}

.auth-alert {
    font-size: 13px;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    background: color-mix(in srgb, var(--color-danger) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--color-danger) 38%, transparent);
    color: color-mix(in srgb, var(--color-danger) 70%, var(--color-text));
}

.auth-alert:empty,
.auth-alert.validation-summary-valid { display: none; }

.auth-alert ul { margin: 0; padding-left: 1.1rem; }

@media (max-width: 860px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-side { display: none; }
    .auth-form-col { max-width: 100%; }
}

@media (max-width: 480px) {
    .auth-form-col { padding: var(--space-8) 16px; justify-content: flex-start; }
    .auth-top { margin-bottom: 36px; }}
