/* auth.css — login page. Single-column, centered, no aside, no boxed steps.
   Inherits everything else from style.css (nav, foot, motd-*). */

.auth-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.auth-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(48px, 10vw, 120px) var(--gutter);
}

.auth-shell {
    width: 100%;
    max-width: 520px;
}

/* Stages */
.auth-stage[hidden] { display: none; }

.auth-title {
    margin: 0 0 14px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: clamp(2.4rem, 5vw, 3.4rem);
    letter-spacing: -0.04em;
    line-height: 1;
    color: var(--text);
}
.auth-title strong {
    color: var(--accent);
    font-style: italic;
    font-weight: 400;
    font-family: 'Instrument Serif', serif;
}
.auth-lede {
    margin: 0 0 28px;
    color: rgba(236, 234, 216, 0.78);
    font-size: 1rem;
    line-height: 1.55;
    max-width: 52ch;
}
.auth-lede strong {
    color: var(--text);
    font-weight: 500;
}
.auth-cmd-inline {
    font-family: var(--mono);
    font-size: 0.92em;
    color: var(--accent);
    padding: 0 2px;
}

/* Stage 1 — single inline input + submit, no boxes */
.auth-form { margin: 0; }
.auth-field {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--rule);
    transition: border-color 120ms ease;
}
.auth-field:focus-within {
    border-bottom-color: var(--accent);
}
.auth-field input {
    appearance: none;
    background: transparent;
    border: 0;
    color: var(--text);
    font: inherit;
    font-family: 'Inter', sans-serif;
    font-size: 1.4rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    padding: 14px 0;
    flex: 1;
    min-width: 0;
}
.auth-field input:focus { outline: 0; }
.auth-field input::placeholder {
    color: rgba(236, 234, 216, 0.28);
    font-weight: 400;
    font-style: italic;
    font-family: 'Instrument Serif', serif;
    letter-spacing: -0.005em;
}
.auth-go {
    appearance: none;
    background: transparent;
    border: 0;
    padding: 0 2px 0 18px;
    cursor: pointer;
    font: inherit;
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 120ms ease, padding-right 200ms cubic-bezier(0.2, 0.7, 0.3, 1);
}
.auth-go:hover { color: var(--accent); padding-right: 6px; }
.auth-go:disabled { opacity: 0.5; cursor: wait; }
.auth-go-arrow { color: var(--accent); transition: transform 200ms cubic-bezier(0.2, 0.7, 0.3, 1); }
.auth-go:hover .auth-go-arrow { transform: translateX(2px); }

.auth-error {
    margin: 16px 0 0;
    color: #ff8c80;
    font-size: 0.88rem;
}

/* Stage 2 — pending verify */
.auth-cmd-block {
    margin: 0 0 18px;
    padding: 16px 18px;
    border: 1px solid var(--rule);
    background: color-mix(in srgb, var(--surface) 60%, transparent);
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: space-between;
}
.auth-cmd {
    font-family: var(--mono);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text);
    letter-spacing: -0.005em;
}
.auth-cmd-slash { color: rgba(236, 234, 216, 0.32); }
.auth-cmd-code {
    color: var(--accent);
    margin-left: 4px;
    user-select: all;
}
.auth-cmd-copy {
    appearance: none;
    background: transparent;
    border: 0;
    color: var(--muted);
    font: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 4px 0;
    border-bottom: 1px solid var(--rule);
    transition: color 120ms ease, border-color 120ms ease;
}
.auth-cmd-copy:hover {
    color: var(--text);
    border-bottom-color: var(--text);
}
.auth-cmd-copy.copied { color: var(--ok); border-bottom-color: var(--ok); }

.auth-progress {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.55;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}
.auth-progress-dot {
    display: inline-block;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--accent);
    animation: auth-pulse 1.4s ease-in-out infinite;
    margin-right: 4px;
}
@keyframes auth-pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.3; }
}
.auth-progress-name { color: var(--text); font-weight: 500; }
.auth-progress-sep { color: rgba(236, 234, 216, 0.22); margin: 0 4px; }
.auth-progress strong {
    color: var(--text);
    font-family: var(--mono);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.auth-link {
    appearance: none;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    font: inherit;
    font-size: inherit;
    color: var(--muted);
    border-bottom: 1px solid rgba(236, 234, 216, 0.2);
    margin-left: 6px;
    transition: color 120ms ease, border-color 120ms ease;
}
.auth-link:hover { color: var(--text); border-bottom-color: var(--text); }
