/**
 * Pulsive — Auth Pages Shared Styles
 * Used by: login.php, forgot-password.php, reset-password.php
 * Requires: brand.css loaded before this file
 */

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

body {
    font-family: 'General Sans', system-ui, sans-serif;
    background: var(--bg);
    color: var(--tx);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

/* Section headings in the editorial display serif */
.auth-card h2 { font-family: 'Boska', Georgia, serif; letter-spacing: -0.01em; }

.auth-card {
    background: var(--card);
    border: 1px solid var(--bd);
    border-radius: var(--r);
    padding: 3rem;
    width: 100%;
    max-width: 420px;
}

.auth-logo { font-family: 'Goodly', 'Boska', sans-serif; font-size: 1.6rem; font-weight: 700; letter-spacing: 0.01em; margin-bottom: 0.25rem; }
.auth-logo span { color: var(--pr); }

.auth-subtitle {
    color: var(--txm); font-size: 0.85rem; margin-bottom: 2rem;
    padding-bottom: 1.5rem; border-bottom: 1px solid var(--bd);
}

.auth-card label {
    display: block; font-size: 0.8rem; color: var(--txs);
    margin-bottom: 0.5rem; font-weight: 500;
}

.auth-card input[type="email"],
.auth-card input[type="password"],
.auth-card input[type="text"] {
    width: 100%; padding: 0.75rem 1rem;
    background: var(--bg); border: 1px solid var(--bd);
    border-radius: var(--r-sm); color: var(--tx);
    font-size: 0.95rem; margin-bottom: 1.25rem;
    font-family: inherit; outline: none;
    transition: border-color 0.2s;
}
.auth-card input:focus { border-color: var(--pr); }

.auth-btn {
    width: 100%; padding: 0.75rem;
    background: var(--gd); color: white;
    border: none; border-radius: var(--r-sm);
    font-size: 0.95rem; font-weight: 600;
    cursor: pointer; font-family: inherit;
    transition: opacity 0.15s;
}
.auth-btn:hover { opacity: 0.88; }

.auth-link {
    display: block; text-align: right; margin: -0.75rem 0 1.25rem;
    color: var(--prl); font-size: 0.78rem; text-decoration: none;
}
.auth-link:hover { color: var(--pr); }

.auth-error {
    background: var(--err-bg); border: 1px solid var(--err-bd);
    color: var(--err-tx); padding: 0.75rem;
    border-radius: var(--r-sm); margin-bottom: 1.25rem; font-size: 0.85rem;
}

.auth-success {
    background: #0d3320; border: 1px solid #22c55e;
    color: #86efac; padding: 0.75rem;
    border-radius: var(--r-sm); margin-bottom: 1.25rem; font-size: 0.85rem;
}

.auth-hint {
    color: var(--txm); font-size: 0.8rem; margin-bottom: 1.5rem; line-height: 1.5;
}

.auth-footer {
    margin-top: 1.5rem; text-align: center;
    font-size: 0.8rem; color: var(--txm);
}
.auth-footer a { color: var(--prl); text-decoration: none; }
.auth-footer a:hover { color: var(--pr); }

.auth-unverified { line-height: 1.5; }
.auth-resend {
    display: inline-block; margin-top: 0.5rem;
    color: var(--err-tx); font-weight: 600; font-size: 0.8rem; text-decoration: underline;
}

/* ── Responsive ── */
@media (max-width: 480px) {
    .auth-card { padding: 2rem 1.5rem; }
    .auth-logo { font-size: 1.3rem; }
}

/* 2026 product redesign */
:root {
    --bg: #f5f6f8;
    --card: #ffffff;
    --bd: #dfe3e9;
    --bdm: #c9ced7;
    --pr: #6547d8;
    --prl: #6547d8;
    --prd: #5639c4;
    --tx: #19202d;
    --txs: #4e596b;
    --txm: #697386;
    --gd: #6547d8;
    --err-bg: #fbecef;
    --err-bd: #e7aab3;
    --err-tx: #8f2635;
    --r: 12px;
    --r-sm: 8px;
}

body {
    position: relative;
    overflow-x: hidden;
    background: var(--bg);
    padding: 32px 20px;
}

body::before {
    content: '';
    position: fixed;
    inset: 0 auto 0 0;
    width: clamp(8px, 1.2vw, 16px);
    background: #6547d8;
}

.auth-card {
    max-width: 440px;
    padding: 36px;
    border-color: var(--bd);
    border-radius: var(--r);
    box-shadow: 0 1px 2px rgba(25,32,45,.04), 0 18px 48px rgba(25,32,45,.08);
}

.auth-card h2 {
    font-family: 'General Sans', system-ui, sans-serif;
    font-weight: 680;
    letter-spacing: -.035em;
}

.auth-logo {
    color: var(--tx);
    font-family: 'General Sans', system-ui, sans-serif;
    font-size: 1.45rem;
    font-weight: 720;
    letter-spacing: -.045em;
}

.auth-logo span { color: var(--pr); }

.auth-subtitle {
    margin-bottom: 26px;
    padding-bottom: 20px;
    color: var(--txm);
    border-bottom-color: var(--bd);
}

.auth-card label {
    margin-bottom: 7px;
    color: var(--txs);
    font-size: .76rem;
    font-weight: 650;
}

.auth-card input[type="email"],
.auth-card input[type="password"],
.auth-card input[type="text"] {
    min-height: 46px;
    margin-bottom: 18px;
    padding: 10px 12px;
    border-color: #cdd2da;
    border-radius: var(--r-sm);
    background: #fff;
    color: var(--tx);
    transition: border-color .15s ease, box-shadow .15s ease;
}

.auth-card input:focus {
    border-color: var(--pr);
    box-shadow: 0 0 0 3px rgba(101,71,216,.15);
}

.auth-btn {
    min-height: 46px;
    border: 1px solid #6547d8;
    border-radius: var(--r-sm);
    background: #6547d8;
    font-weight: 660;
    box-shadow: 0 1px 2px rgba(41,27,99,.18);
    transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.auth-btn:hover { border-color: #5639c4; background: #5639c4; opacity: 1; box-shadow: 0 4px 12px rgba(65,42,157,.2); }
.auth-btn:active { transform: translateY(1px); }
.auth-btn:focus-visible,.auth-link:focus-visible,.lb:focus-visible { outline: none; box-shadow: 0 0 0 2px #fff, 0 0 0 5px rgba(101,71,216,.42); }

.auth-link { color: var(--pr); font-weight: 570; }
.auth-link:hover { color: var(--prd); }

.auth-error,.auth-success {
    padding: 12px 14px;
    border-radius: var(--r-sm);
    font-size: .81rem;
}

.auth-success { border-color: #9ad2bc; background: #e8f7f1; color: #116b4e; }
.auth-footer { padding-top: 18px; border-top: 1px solid var(--bd); color: var(--txm); }
.auth-footer a { color: var(--pr); font-weight: 620; }

.lang-bar { margin-bottom: 0 !important; }
.lb { min-height: 30px; border-color: var(--bd) !important; border-radius: 6px !important; color: var(--txm) !important; }
.lb:hover { border-color: var(--bdm) !important; color: var(--tx) !important; }
.lb.on { border-color: var(--pr) !important; background: var(--pr) !important; color: #fff !important; }

@media (max-width: 480px) {
    body { padding: 20px 14px 20px 24px; }
    .auth-card { padding: 28px 22px; }
    .auth-logo { font-size: 1.3rem; }
}

@media (prefers-reduced-motion: reduce) {
    *,*::before,*::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
