/* ═══════════════════════════════════════════
   PriceHound — Auth Page (Monochrome)
   ═══════════════════════════════════════════ */

:root {
    --white: #ffffff;
    --off-white: #f7f7f5;
    --sand: #eeece7;
    --ink: #0a0a0a;
    --ink-soft: #333;
    --ink-muted: #666;
    --ink-faint: #999;
    --ink-ghost: #bbb;
    --border: #e8e8e5;
    --border-dark: #d5d5d0;
    --green: #16a34a;
    --red: #dc2626;
    --radius: 10px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--white);
    color: var(--ink);
    line-height: 1.5;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

h1, h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

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

/* ─── FORM SIDE ─── */
.auth-form-side {
    display: flex;
    flex-direction: column;
    padding: 24px 40px;
}

.auth-form-side nav { margin-bottom: 40px; }

.nav-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--ink);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.02em;
}

.nav-logo-icon { width: 24px; height: 24px; }

.auth-form-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 360px;
    width: 100%;
    margin: 0 auto;
}

.auth-form-wrap h1 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 6px;
}

.auth-subtitle {
    color: var(--ink-muted);
    font-size: 15px;
    margin-bottom: 32px;
}

.auth-msg {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
    font-weight: 500;
}

.auth-msg.error {
    background: rgba(220,38,38,0.05);
    border: 1px solid rgba(220,38,38,0.15);
    color: var(--red);
}

.auth-msg.success {
    background: rgba(22,163,74,0.05);
    border: 1px solid rgba(22,163,74,0.15);
    color: var(--green);
}

.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-soft);
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 15px;
    color: var(--ink);
    outline: none;
    font-family: inherit;
    transition: all 0.15s;
}

.form-group input:focus {
    border-color: var(--ink);
    box-shadow: 0 0 0 3px rgba(10,10,10,0.06);
}

.form-group input::placeholder { color: var(--ink-ghost); }

.btn-submit {
    width: 100%;
    background: var(--ink);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 14px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.btn-submit:hover { background: #222; }
.btn-submit:disabled { opacity: 0.5; cursor: not-allowed; }

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.auth-switch {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--ink-faint);
}

.auth-switch a {
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    margin-left: 4px;
}

.auth-switch a:hover { text-decoration: underline; }

/* ─── BRAND SIDE ─── */
.auth-brand-side {
    background: var(--ink);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px;
    position: relative;
    overflow: hidden;
}

.brand-content {
    position: relative;
    text-align: center;
    max-width: 360px;
}

.brand-logo {
    width: 48px;
    height: 48px;
    filter: invert(1);
    opacity: 0.35;
    margin-bottom: 32px;
}

.brand-content h2 {
    color: white;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
}

.brand-content p {
    color: rgba(255,255,255,0.35);
    font-size: 15px;
}

.brand-dots {
    position: absolute;
    bottom: 40px;
    display: flex;
    gap: 8px;
}

.bdot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
}

.bdot:first-child { background: rgba(255,255,255,0.5); }

@media (max-width: 768px) {
    .auth-layout { grid-template-columns: 1fr; }
    .auth-brand-side { display: none; }
    .auth-form-side { padding: 24px; }
    .auth-form-wrap { max-width: 100%; }
}
