/* ==========================================================================
   Sign-in screens (app/auth.tpl, inside the public website): the page is split
   in a dark half (pitch) and a white half (form); the content follows the
   site container
   ========================================================================== */

.auth {
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, var(--color-dark) 50%, var(--color-surface) 50%);
}

/* soft light in the top left corner of the dark half */
.auth::before {
    content: "";
    position: absolute;
    inset: 0 50% 0 0;
    background: radial-gradient(120% 80% at 0% 0%, #1E2E27 0%, transparent 60%);
}

.auth__chart {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50%;
    height: 140px;
}

.auth__inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: calc(100vh - var(--site-header-height));
}

/* ---------- Pitch (dark half) ---------- */

.auth__brand {
    align-self: center;
    max-width: 460px;
    padding: 64px 48px 180px 0;
}

.auth__brand h2 {
    color: #fff;
    font-size: clamp(32px, 3vw, 44px);
    font-weight: 600;
    letter-spacing: -1px;
    line-height: 1.1;
}

.auth__brand p {
    max-width: 380px;
    margin-top: var(--space-3);
    color: var(--color-on-dark-muted);
    font-size: 16px;
}

/* ---------- Form (white half) ---------- */

.auth__form {
    align-self: center;
    justify-self: end;
    width: 100%;
    max-width: 468px;
    padding: 64px 0 64px 48px;
}

.auth__form .page-title {
    margin-bottom: 6px;
}

.auth__intro {
    margin-bottom: 26px;
    color: var(--color-text-muted);
    font-weight: var(--font-weight-normal);
}

.auth__register {
    margin-top: var(--space-5);
    color: var(--color-text-muted);
    font-size: 13.5px;
    text-align: center;
}

.auth__register .icon {
    display: inline-block;
    vertical-align: -3px;
}

.auth__notice {
    margin-top: 26px;
    padding-top: var(--space-3);
    border-top: 1px solid var(--color-line);
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
}

.auth__notice summary {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    list-style: none;
    cursor: pointer;
}

.auth__notice summary::-webkit-details-marker {
    display: none;
}

.auth__notice p {
    margin-top: var(--space-2);
    line-height: 1.55;
}

@media (max-width: 900px) {
    .auth { background: var(--color-surface); }
    .auth::before,
    .auth__chart,
    .auth__brand { display: none; }
    .auth__inner { grid-template-columns: 1fr; min-height: 0; }
    .auth__form { justify-self: center; max-width: 420px; padding: 40px 0 56px; }
}
