/* =====================================================================
   BuildPro — authentication + minimal (error) pages
   ===================================================================== */

.auth { background: var(--paper); }
.auth__layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); min-height: 100vh; }

.auth__aside {
    position: relative; overflow: hidden; color: #fff;
    background:
        radial-gradient(700px 400px at 20% 0%, rgba(63, 120, 214, 0.22), transparent 60%),
        var(--navy-900);
}
.auth__aside::before {
    content: ""; position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(143, 177, 226, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(143, 177, 226, 0.06) 1px, transparent 1px);
    background-size: 26px 26px;
}
.auth__aside-inner { position: sticky; top: 0; display: flex; flex-direction: column; gap: 40px; min-height: 100vh; padding: 40px 48px; }
.auth__aside .brand { color: #fff; }
.auth__drawing { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; }
.auth__drawing .plan { max-width: 440px; }
.auth__drawing .plan--dark { --plan-room: #0c1729; }
.auth__aside-copy { position: relative; max-width: 440px; }
.auth__quote { margin-top: 14px; font-family: var(--font-display); font-size: 22px; font-weight: 600; line-height: 1.35; color: #e8eef7; }
.auth__chain { position: relative; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel-400); }
.auth__chain li { position: relative; }
.auth__chain li + li::before { content: ""; position: absolute; left: -14px; top: 50%; width: 6px; height: 6px; margin-top: -3px; background: var(--accent); transform: rotate(45deg); }

.auth__main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 24px 32px; }
.auth__main:focus { outline: none; }
.auth__mobile-brand { display: none; }
.auth__panel { width: 100%; max-width: 440px; display: grid; gap: 22px; }
.auth__header h1 { margin-top: 12px; font-size: 34px; font-weight: 800; letter-spacing: -0.02em; }
.auth__lead { margin-top: 10px; color: var(--ink-3); }
.auth__switch { font-size: 14px; color: var(--ink-3); text-align: center; }
.auth__switch a { font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.auth__switch .icon { width: 14px; height: 14px; }
.auth__legal { margin-top: 40px; font-size: 12.5px; color: var(--ink-4); }
.auth__legal a { color: var(--ink-3); }

.dev-note {
    padding: 14px 16px; font-size: 13px; color: #6b4a00; background: #fff8e8; border: 1px dashed #e0b95c; border-radius: var(--radius);
}
.dev-note code { font-size: 12px; }
.dev-note__link { display: block; margin-top: 8px; font-family: var(--font-mono); font-size: 12px; word-break: break-all; }

@media (max-width: 960px) {
    .auth__layout { grid-template-columns: 1fr; }
    .auth__aside { display: none; }
    .auth__mobile-brand { display: block; margin-bottom: 36px; }
    .auth__main { justify-content: flex-start; padding-top: 32px; }
}
@media (max-width: 480px) {
    .auth__main { padding: 24px 16px; }
    .auth__header h1 { font-size: 28px; }
    .field-grid { grid-template-columns: 1fr; }
}

/* ---------- Minimal layout (errors) ---------- */
.minimal { min-height: 100vh; background: var(--paper-2); }
.minimal__main { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 36px; min-height: 100vh; padding: 32px 16px; }
.minimal__brand .brand { color: var(--ink); }
.state-card {
    width: 100%; max-width: 560px; padding: 40px; text-align: center;
    background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius); box-shadow: var(--shadow);
}
.state-card__code { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.state-card h1 { margin-top: 12px; font-size: 26px; }
.state-card p { margin-top: 12px; color: var(--ink-3); }
.state-card__detail { margin-top: 18px; padding: 12px; font-size: 12px; text-align: left; white-space: pre-wrap; color: #8e2424; background: var(--danger-bg); border-radius: var(--radius); }
.state-card__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
