/* ==========================================================================
   PIXELFLOW — custom auth pages (login / register / reset / verify)
   Split-screen: graphite brand panel + form. Reuses the design tokens.
   ========================================================================== */

.pf-auth *, .pf-auth *::before, .pf-auth *::after { box-sizing: border-box; }

.pf-auth {
    margin: 0;
    font-family: var(--pf-font);
    color: var(--pf-text);
    background: var(--pf-surface);
    -webkit-font-smoothing: antialiased;
}

.pf-auth-split { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 100vh; }

/* --- Brand panel -------------------------------------------------------- */
.pf-auth-brand {
    position: relative;
    display: flex; flex-direction: column;
    padding: 40px 48px;
    color: #fff;
    background: linear-gradient(160deg, #1e293b 0%, #334155 60%, #3f4d63 100%);
    overflow: hidden;
}
.pf-auth-brand::after {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(70% 55% at 85% 15%, rgba(251,191,36,0.16) 0%, rgba(251,191,36,0) 60%);
    pointer-events: none;
}
.pf-auth-logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -0.01em; text-decoration: none; position: relative; z-index: 1; }
.pf-auth-mark { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg, #94a3b8, #cbd5e1); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.25); }
.pf-auth-word { font-size: 1.2rem; }
.pf-auth-pixel { color: #fff; }
.pf-auth-flow { color: var(--pf-amber); }

.pf-auth-brand-body { margin-top: auto; margin-bottom: auto; position: relative; z-index: 1; max-width: 30ch; }
.pf-auth-tagline { font-size: clamp(1.7rem, 2.6vw, 2.4rem); line-height: 1.1; letter-spacing: -0.02em; font-weight: 750; margin: 0 0 16px; }
.pf-auth-brandsub { color: rgba(255,255,255,0.72); font-size: 1.02rem; line-height: 1.6; margin: 0; }
.pf-auth-brand-foot { position: relative; z-index: 1; color: rgba(255,255,255,0.45); font-size: var(--pf-fs-xs); margin: 0; }

/* --- Form panel --------------------------------------------------------- */
.pf-auth-panel { display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: var(--pf-bg); }
.pf-auth-card { width: 100%; max-width: 380px; }

.pf-auth-title { font-size: 1.6rem; letter-spacing: -0.02em; font-weight: 700; margin: 0 0 6px; }
.pf-auth-lead { color: var(--pf-text-muted); margin: 0 0 24px; }

.pf-auth-fields { display: flex; flex-direction: column; }
.pf-auth-label { font-size: var(--pf-fs-sm); font-weight: 600; color: var(--pf-text); margin: 14px 0 6px; }
.pf-auth-input {
    width: 100%; padding: 11px 13px; font-size: 15px;
    border: 1px solid var(--pf-border-strong); border-radius: var(--pf-r-md);
    background: var(--pf-surface); color: var(--pf-text); transition: border-color var(--pf-transition), box-shadow var(--pf-transition);
}
.pf-auth-input:focus { outline: none; border-color: var(--pf-accent); box-shadow: 0 0 0 3px var(--pf-accent-ring); }
.pf-auth-hint { font-size: var(--pf-fs-sm); color: var(--pf-text-faint); margin: 6px 0 0; }

.pf-auth-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 0 4px; }
.pf-auth-check { display: inline-flex; align-items: center; gap: 7px; font-size: var(--pf-fs-sm); color: var(--pf-text-muted); }
.pf-auth-mini, .pf-auth-alt a, .pf-auth-back a { color: var(--pf-accent); text-decoration: none; }
.pf-auth-mini:hover, .pf-auth-alt a:hover, .pf-auth-back a:hover { text-decoration: underline; }

.pf-auth-btn {
    display: inline-flex; align-items: center; justify-content: center; width: 100%;
    margin-top: 22px; padding: 12px 18px; font-size: 15px; font-weight: 600;
    color: #fff; background: var(--pf-accent); border: 1px solid var(--pf-accent-strong);
    border-radius: var(--pf-r-md); cursor: pointer; text-decoration: none;
    transition: background var(--pf-transition), transform var(--pf-transition);
}
.pf-auth-btn:hover { background: var(--pf-accent-strong); transform: translateY(-1px); }
.pf-auth-btn--link { margin-top: 8px; }

.pf-auth-alt { margin: 22px 0 0; font-size: var(--pf-fs-md); color: var(--pf-text-muted); }
.pf-auth-back { margin: 28px 0 0; font-size: var(--pf-fs-sm); }

.pf-auth-error {
    background: #fdecea; color: #b3261e; border: 1px solid #f5c6c2;
    border-radius: var(--pf-r-md); padding: 11px 14px; font-size: var(--pf-fs-md); margin: 0 0 18px;
}

.pf-auth-icon {
    width: 46px; height: 46px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; background: var(--pf-accent-soft); color: var(--pf-accent-strong); margin-bottom: 18px;
}
.pf-auth-icon svg { width: 24px; height: 24px; }

/* Honeypot — hidden from humans, present for bots. */
.pf-auth-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --- Responsive --------------------------------------------------------- */
@media (max-width: 820px) {
    .pf-auth-split { grid-template-columns: 1fr; }
    .pf-auth-brand { padding: 28px 28px; min-height: 200px; }
    .pf-auth-brand-body { margin: 20px 0; }
    .pf-auth-tagline { font-size: 1.5rem; }
    .pf-auth-brandsub { display: none; }
}
