/*
 * Sign-in, two-factor and recovery screens: a split layout — the dark
 * "cellar door" on the left, the form on the right.
 */
.auth {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    min-height: 100vh;
    background: var(--white);
}

.auth-door {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: var(--space-7);
    color: var(--on-dark);
    background:
        radial-gradient(circle at 80% 15%, rgba(250, 204, 6, .14), transparent 32%),
        radial-gradient(circle at 0% 100%, rgba(77, 157, 221, .2), transparent 42%),
        repeating-linear-gradient(0deg, transparent 0 39px, rgba(255, 255, 255, .03) 39px 40px),
        repeating-linear-gradient(90deg, transparent 0 39px, rgba(255, 255, 255, .03) 39px 40px),
        linear-gradient(160deg, var(--navy-800), var(--navy-900) 55%, var(--navy-950));
}
.auth-door::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -260px;
    width: 560px;
    height: 560px;
    margin-left: -280px;
    border-radius: 50%;
    border: 1px solid rgba(250, 204, 6, .12);
    box-shadow: 0 0 0 50px rgba(255, 255, 255, .02), 0 0 0 100px rgba(255, 255, 255, .015), 0 0 0 150px rgba(255, 255, 255, .01);
    pointer-events: none;
}
.auth-door img { width: 240px; height: auto; }
.auth-door .tagline { position: relative; z-index: 1; max-width: 30ch; }
.auth-door .tagline h2 { color: var(--white); font-size: 2.2rem; line-height: 1.1; margin-bottom: var(--space-3); }
.auth-door .tagline h2 em { font-style: normal; color: var(--gold-400); }
.auth-door .tagline p { color: var(--on-dark-muted); margin: 0; }
.auth-door .site-link { display: inline-block; margin-top: var(--space-4); color: var(--gold-400); font-weight: 700; font-size: var(--text-sm); }
.auth-door .app-name { font-family: var(--font-mono); font-size: var(--text-sm); letter-spacing: .1em; color: var(--gold-400); position: relative; z-index: 1; }
.auth-door .app-name span { color: var(--on-dark-muted); }

.auth-panel { display: grid; place-items: center; padding: var(--space-7) var(--space-5); }
.auth-card { width: 100%; max-width: 400px; }
.auth-card h1 { font-size: 2rem; }
.auth-card .lede { color: var(--muted); margin-bottom: var(--space-4); }
.auth-card form .btn { margin-top: var(--space-5); }
.auth-card .fineprint { margin-top: var(--space-5); font-size: var(--text-xs); color: var(--muted); }

.qr { display: inline-block; padding: var(--space-3); border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); }
.qr svg { width: 200px; height: 200px; }
.secret { display: block; margin-top: var(--space-2); padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); background: var(--surface); word-break: break-all; }

.codes { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); padding: var(--space-4); border-radius: var(--radius-sm); background: var(--surface); }
.codes code { font-size: 1rem; }

@media (max-width: 860px) {
    .auth { grid-template-columns: 1fr; }
    .auth-door { padding: var(--space-5); min-height: auto; gap: var(--space-6); }
    .auth-door .tagline h2 { font-size: 1.8rem; }
}
