/* Sign-in. The only page an unauthenticated visitor can reach. */

html, body {
    height: 100%;
}

body.signin {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
    position: relative;
    overflow-x: hidden;
}

/* Light coming through the darkroom door. */
body.signin::before {
    content: "";
    position: fixed;
    inset: -20%;
    background:
        radial-gradient(50% 45% at 22% 18%, rgba(76, 154, 255, .20), transparent 70%),
        radial-gradient(45% 50% at 82% 88%, rgba(30, 74, 118, .35), transparent 72%);
    pointer-events: none;
    z-index: 0;
}

.shell {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 940px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}

/* ---------------- identity rail ---------------- */

.rail {
    min-width: 0;
}

.eyebrow {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 22px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.eyebrow::before {
    content: "";
    width: 26px;
    height: 1px;
    background: var(--accent-dim);
}

.wordmark {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(48px, 7vw, 76px);
    line-height: .92;
    letter-spacing: -.035em;
    margin: 0 0 20px;
}

.wordmark span {
    display: block;
}

.wordmark .lee {
    color: var(--accent);
}

.blurb {
    margin: 0;
    max-width: 34ch;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.6;
}

.rail-foot {
    margin-top: 38px;
    padding-top: 20px;
    border-top: 1px solid rgba(30, 74, 118, .5);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--dim);
}

/* ---------------- the door ---------------- */

.panel {
    background: linear-gradient(180deg, rgba(20, 57, 95, .55), rgba(11, 32, 56, .75));
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 30px;
    box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(160, 205, 255, .14);
    backdrop-filter: blur(14px);
}

.panel-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 20px;
    letter-spacing: -.015em;
    margin: 0 0 4px;
}

.panel-sub {
    margin: 0 0 22px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    background: rgba(6, 18, 31, .6);
    border: 1px solid rgba(30, 74, 118, .7);
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 24px;
}

/* The tabs are anchors so they work without scripting; they still have to
   read as a segmented control rather than as two links. */
.switch a {
    appearance: none;
    border: 0;
    cursor: pointer;
    background: transparent;
    color: var(--muted);
    text-decoration: none;
    text-align: center;
    font-family: var(--font-body);
    font-size: 13.5px;
    font-weight: 500;
    padding: 9px 8px;
    border-radius: 7px;
    transition: background .18s ease, color .18s ease;
}

.switch a[aria-selected="true"] {
    background: var(--mid);
    color: var(--paper);
    box-shadow: inset 0 1px 0 rgba(160, 205, 255, .16);
}

.switch a[aria-selected="false"]:hover {
    color: var(--paper);
}

.pane[hidden] {
    display: none;
}

label.fld {
    display: block;
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 9px;
}

.txt {
    width: 100%;
    background: rgba(6, 18, 31, .66);
    border: 1px solid rgba(30, 74, 118, .9);
    border-radius: 10px;
    padding: 13px 14px;
    color: var(--paper);
    font-family: var(--font-body);
    font-size: 15px;
    transition: border-color .16s ease, box-shadow .16s ease;
}

.txt::placeholder {
    color: #4E688A;
}

.txt:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(76, 154, 255, .18);
}

/* Three groups of four, mirroring how a code is written down. */
.code-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cell {
    width: 100%;
    min-width: 0;
    background: rgba(6, 18, 31, .66);
    border: 1px solid rgba(30, 74, 118, .9);
    border-radius: 10px;
    padding: 13px 4px;
    text-align: center;
    color: var(--paper);
    font-family: var(--font-mono);
    font-size: 17px;
    font-weight: 500;
    letter-spacing: .16em;
    text-indent: .16em;
    text-transform: uppercase;
    transition: border-color .16s ease, box-shadow .16s ease;
}

.cell:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(76, 154, 255, .18);
}

.dash {
    color: #3B5A7C;
    font-family: var(--font-mono);
    flex: 0 0 auto;
}

.go {
    width: 100%;
    margin-top: 18px;
    appearance: none;
    border: 0;
    cursor: pointer;
    background: var(--accent);
    color: #04101C;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15px;
    padding: 14px;
    border-radius: 10px;
    transition: background .16s ease, transform .1s ease;
}

.go:hover {
    background: #68ABFF;
}

.go:active {
    transform: translateY(1px);
}

.go:disabled {
    background: var(--mid);
    color: #6E8CAC;
    cursor: not-allowed;
}

.note {
    margin: 16px 0 0;
    font-size: 13px;
    line-height: 1.55;
    color: var(--muted);
}

.msg {
    margin-top: 14px;
    font-size: 13.5px;
    line-height: 1.5;
    padding: 11px 13px;
    border-radius: 9px;
    border: 1px solid rgba(30, 74, 118, .9);
    background: rgba(6, 18, 31, .5);
}

.msg[hidden] {
    display: none;
}

.msg.err {
    border-color: rgba(255, 142, 110, .45);
    color: var(--bad);
}

.msg.ok {
    border-color: rgba(76, 154, 255, .45);
    color: var(--accent);
}

/* The panel develops like a print. */
@keyframes develop {
    from {
        opacity: 0;
        filter: blur(14px) contrast(.55) brightness(.65);
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        filter: blur(0) contrast(1) brightness(1);
        transform: none;
    }
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.panel {
    animation: develop 1.15s cubic-bezier(.2, .7, .25, 1) both;
}

.eyebrow {
    animation: rise .6s ease .05s both;
}

.wordmark {
    animation: rise .7s ease .14s both;
}

.blurb {
    animation: rise .7s ease .24s both;
}

.rail-foot {
    animation: rise .7s ease .34s both;
}

@media (max-width: 820px) {
    .shell {
        grid-template-columns: 1fr;
        gap: 40px;
        max-width: 440px;
    }

    .wordmark {
        font-size: clamp(40px, 12vw, 56px);
    }

    .rail-foot {
        display: none;
    }
}
