/* =====================================================================
   Pinakabarato sa Cabadbaran — Auth Pages (Login & Register)
   Implemented from Figma (node 25:475): full-height split — white form
   panel (left) + green marketing panel (right). Social login only.
   Typeface: DM Sans. Accent green: #16A34A.
   ===================================================================== */

:root {
    --pb-auth-green:    #16A34A;   /* Figma accent green */
    --pb-auth-green-h:  #128A3E;   /* hover */
    --pb-auth-ink:      #111111;   /* headings / strong text */
    --pb-auth-muted:    #666666;   /* secondary text */
    --pb-auth-border:   #E8E8E8;   /* button / hairline border */
    --pb-auth-font:     'DM Sans', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ── Full-height split shell ──────────────────────────────────────── */
.pb-auth-split {
    display: flex;
    min-height: 100vh;
    width: 100%;
    background: #ffffff;
    font-family: var(--pb-auth-font);
    color: var(--pb-auth-ink);
}

/* ── Left panel (form) — 5 : 7 ratio matches the 600/840 Figma split ─ */
.pb-auth-left {
    flex: 5 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    background: #ffffff;
}
.pb-auth-left-inner {
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
}

/* Brand / logo */
.pb-auth-logo { display: flex; align-items: center; gap: 8px; }
.pb-auth-logo-mark {
    width: 26px; height: 26px;
    border-radius: 6px;
    background: var(--pb-auth-green);
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 14px;
}
.pb-auth-logo-name { font-weight: 700; font-size: 15px; color: var(--pb-auth-ink); }

/* Heading */
.pb-auth-head { width: 100%; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.pb-auth-h1 {
    font-weight: 700;
    font-size: 40px;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--pb-auth-ink);
    margin: 0;
}
.pb-auth-sub { font-weight: 400; font-size: 14px; color: var(--pb-auth-muted); margin: 0; }

/* OAuth error alert (rendered inside .pb-auth-actions) */
.pb-alert { display: flex; align-items: center; gap: 8px; width: 100%; padding: 12px 14px; border-radius: 10px; font-size: 14px; line-height: 1.4; }
.pb-alert-error { background: #FEF2F2; border: 1px solid #FECACA; color: #B42318; }
.pb-alert iconify-icon { font-size: 16px; flex-shrink: 0; }

/* Social buttons */
.pb-auth-actions { width: 100%; display: flex; flex-direction: column; gap: 16px; }
.pb-oauth-btn {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    height: 52px;
    width: 100%;
    padding: 0 20px;
    background: #ffffff;
    border: 1px solid var(--pb-auth-border);
    border-radius: 10px;
    font-family: var(--pb-auth-font);
    font-weight: 600;
    font-size: 15px;
    color: var(--pb-auth-ink);
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, transform 0.1s ease;
}
.pb-oauth-btn:hover {
    border-color: #d4d4d4;
    background: #fcfcfc;
    box-shadow: 0 2px 10px rgba(17,17,17,0.05);
    color: var(--pb-auth-ink);
    transform: translateY(-1px);
}
.pb-oauth-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(22,163,74,0.28); }
.pb-oauth-btn .pb-oauth-ico { width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pb-oauth-btn .pb-oauth-ico svg { width: 20px; height: 20px; display: block; }
.pb-oauth-btn .pb-oauth-ico i { font-size: 19px; line-height: 1; }
.pb-ico-facebook { color: #1877F2; }

/* Switch link */
.pb-auth-switch { width: 100%; text-align: center; font-size: 15px; color: var(--pb-auth-muted); margin: 0; }
.pb-auth-switch a { color: var(--pb-auth-green); font-weight: 700; text-decoration: none; }
.pb-auth-switch a:hover { text-decoration: underline; }

/* ── Right panel (marketing) ──────────────────────────────────────── */
.pb-auth-right {
    flex: 7 1 0;
    position: relative;
    overflow: hidden;
    background: var(--pb-auth-green);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 80px;
}
.pb-auth-quote {
    position: absolute;
    top: 40px; left: 80px;
    font-weight: 700;
    font-size: 200px;
    line-height: 1;
    color: #ffffff;
    opacity: 0.10;
    pointer-events: none;
    user-select: none;
}
.pb-auth-right-inner { position: relative; z-index: 1; width: 100%; max-width: 560px; display: flex; flex-direction: column; gap: 40px; }
.pb-auth-right-head { display: flex; flex-direction: column; gap: 16px; }
.pb-auth-quote-title { font-weight: 700; font-size: 36px; line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
.pb-auth-quote-sub { font-weight: 400; font-size: 18px; line-height: 1.6; opacity: 0.9; margin: 0; }

/* Feature checklist */
.pb-auth-checks { display: flex; flex-direction: column; gap: 24px; }
.pb-auth-check { display: flex; align-items: center; gap: 12px; }
.pb-auth-check-ico {
    width: 20px; height: 20px; border-radius: 50%;
    background: #ffffff; color: var(--pb-auth-green);
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.pb-auth-check-ico svg { width: 11px; height: 11px; display: block; }
.pb-auth-check > span:last-child { font-weight: 500; font-size: 16px; color: #fff; }

.pb-auth-foot { position: relative; z-index: 1; font-weight: 500; font-size: 14px; color: #fff; opacity: 0.7; }

/* ── Responsive: hide the marketing panel, form goes full width ───── */
@media (max-width: 900px) {
    .pb-auth-right { display: none; }
    .pb-auth-left { flex: 1 1 100%; padding: 48px 28px; }
}
@media (max-width: 480px) {
    .pb-auth-left { padding: 40px 22px; }
    .pb-auth-h1 { font-size: 32px; }
    .pb-auth-left-inner { gap: 36px; }
}
