/* =========================================================
   Authentication
   ========================================================= */

.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(500px, .92fr);
    min-height: calc(100vh - var(--header-h));
    background: var(--paper);
}

.auth-visual {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 690px;
    overflow: hidden;
    padding: 64px;
    background: var(--forest);
    color: var(--paper);
}

.auth-visual-image {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(6, 13, 8, .2) 0%, rgba(6, 13, 8, .45) 50%, rgba(6, 13, 8, .94) 100%),
        url("../img/hero-lake.svg") center center / cover no-repeat;
    transform: scale(1.01);
}

.auth-visual-image--register {
    background:
        linear-gradient(180deg, rgba(6, 13, 8, .2) 0%, rgba(6, 13, 8, .5) 50%, rgba(6, 13, 8, .95) 100%),
        url("../img/hero-lake.svg") center 65% / cover no-repeat;
    transform: scale(1.01) scaleX(-1);
}

.auth-visual-content {
    position: relative;
    z-index: 1;
    max-width: 650px;
}

.auth-quote {
    margin-top: 24px;
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 4.4vw, 4.8rem);
    font-weight: 400;
    letter-spacing: .01em;
    line-height: .95;
    text-transform: uppercase;
    text-wrap: balance;
}

.auth-quote em {
    color: var(--gold);
    font-style: normal;
}

.auth-crew-stamps {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 42px;
    padding-top: 24px;
    border-top: 1px solid var(--line-dark);
}

.auth-crew-stamps span {
    color: rgba(243, 239, 227, .72);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    line-height: 1.7;
    text-transform: uppercase;
}

.auth-crew-stamps strong {
    color: var(--gold);
    font-weight: 800;
}

.auth-crew-stamps i {
    width: 1px;
    height: 24px;
    background: var(--line-dark);
}

.auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 70px 34px;
    background: var(--paper);
}

.auth-panel-inner {
    width: min(100%, 430px);
}

.auth-panel-inner--wide {
    width: min(100%, 550px);
}

.auth-panel h1 {
    margin-top: 8px;
    font-family: var(--font-display);
    font-size: clamp(3.4rem, 5vw, 4.9rem);
    font-weight: 400;
    letter-spacing: .01em;
    line-height: .88;
    text-transform: uppercase;
}

.auth-intro {
    margin-top: 12px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
}

.auth-panel .form-stack {
    margin-top: 28px;
}

.auth-panel .form-alert {
    margin-top: 22px;
    margin-bottom: 0;
}

.demo-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 24px;
    padding: 15px 16px;
    border: 1px dashed #c9bfa9;
    background: var(--paper-2);
}

.demo-card-label {
    display: block;
    color: var(--gold-deep);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.demo-card p {
    margin-top: 2px;
    color: var(--muted);
    font-size: 11px;
}

.demo-fill {
    flex: 0 0 auto;
    padding: 0;
    border: 0;
    border-bottom: 1px solid var(--ink);
    background: transparent;
    color: var(--ink);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    line-height: 1.6;
    text-transform: uppercase;
}

.demo-fill span {
    margin-left: 3px;
}

.demo-fill:hover {
    color: var(--gold-deep);
    border-color: var(--gold-deep);
}

/* What's new — the changelog on the sign-in page */

.auth-updates {
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.auth-updates-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 4px;
}

.auth-updates-head h2 {
    margin: 0;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--gold-deep);
}

.auth-updates-head a {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    border-bottom: 1px solid transparent;
}

.auth-updates-head a:hover {
    color: var(--gold-deep);
    border-bottom-color: var(--gold-deep);
}

/* The changelog rules are drawn for a wide page, where a 16px heading and a full
   paragraph sit comfortably. In a 380px panel they crowd, so this is the narrow
   version of the same list. */
.auth-updates .changelog-item {
    padding: 11px 0 11px 12px;
}

.auth-updates .changelog-item h3 {
    margin: 4px 0 3px;
    font-size: 13px;
    line-height: 1.35;
}

.auth-updates .changelog-item p {
    font-size: 11px;
    line-height: 1.55;
}

.auth-updates .changelog-meta {
    font-size: 11px;
}

.auth-switch {
    margin-top: 24px;
    padding-top: 19px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 11px;
}

.auth-switch a {
    color: var(--ink);
    font-weight: 800;
    border-bottom: 1px solid var(--ink);
}

.auth-switch a:hover {
    color: var(--gold-deep);
    border-color: var(--gold-deep);
}

/* Crew picker */

.crew-picker {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin-top: 1px;
}

.crew-picker legend {
    grid-column: 1 / -1;
    margin-bottom: 1px;
    color: var(--ink-soft);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.crew-option {
    position: relative;
    cursor: pointer;
}

.crew-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.crew-option-inner {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-height: 70px;
    padding: 13px;
    border: 1px solid var(--line);
    background: var(--paper-2);
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.crew-option-inner strong {
    font-size: 11px;
}

.crew-option-inner small {
    color: var(--muted);
    font-size: 11px;
}

.crew-option input:checked + .crew-option-inner {
    border-color: var(--forest);
    background: var(--forest);
    box-shadow: 0 8px 20px -14px rgba(12, 21, 14, .6);
    color: var(--paper);
}

.crew-option input:checked + .crew-option-inner small {
    color: rgba(243, 239, 227, .74);
}

.crew-option input:focus-visible + .crew-option-inner {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.auth-panel .check-row {
    margin-top: 1px;
}

.auth-panel .button--full {
    margin-top: 2px;
}
