/* auth.css — the sign-in pages: login, sign-up, forgot password (2026-10-06).
   Moved verbatim from pages/internal/login.php so the three pages share one look. */
:root {
    --primary: hsl(250, 89%, 60%);
    --primary-hover: hsl(250, 89%, 53%);
    --primary-soft: hsl(250, 89%, 60%, 0.08);
    --whatsapp: #25D366;
    --whatsapp-deep: #075E54;
    --bg: #ffffff;
    --bg-soft: #fafafa;
    --text: #1F2C34;
    --text-dim: #475569;
    --text-mute: #8696A0;
    --border: #e9ecf1;
    --border-strong: #d1d5db;
    --shadow-sm: 0 2px 8px rgba(31, 44, 52, 0.04);
    --shadow-md: 0 8px 24px rgba(31, 44, 52, 0.06);
    --shadow-lg: 0 24px 60px -16px rgba(31, 44, 52, 0.18);
    --shadow-purple: 0 12px 40px -8px hsl(250 89% 60% / 0.35);
    --r-md: 0.75rem;
    --r-lg: 1rem;
    --r-xl: 1.5rem;
    --r-2xl: 2rem;
    --r-pill: 999px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Heebo', system-ui, -apple-system, sans-serif;
    background: var(--bg); color: var(--text);
    direction: rtl; line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }

/* ── Page layout: split-screen ─────────────────────────────────── */
.page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}
@media (max-width: 900px) {
    .page { grid-template-columns: 1fr; }
    .moment { display: none; }
}

/* ── Right side: form panel ────────────────────────────────────── */
.form-panel {
    display: flex; flex-direction: column;
    justify-content: space-between;
    padding: 32px 48px;
    background: var(--bg);
    position: relative; overflow: hidden;
}
.form-panel::before {
    content: ''; position: absolute;
    top: -10%; right: -10%;
    width: 480px; height: 480px;
    background: radial-gradient(circle, var(--primary-soft) 0%, transparent 65%);
    pointer-events: none;
}
.form-top {
    position: relative; z-index: 1;
    display: flex; align-items: center; justify-content: space-between;
}
.brand {
    font-weight: 900; font-size: 22px;
    letter-spacing: -0.025em;
    display: flex; align-items: center; gap: 10px;
    color: var(--text);
}
.brand-logo {
    width: 36px; height: 36px; flex-shrink: 0; display: block;
}
.back-home {
    color: var(--text-mute); font-size: 14px; font-weight: 500;
}
.back-home:hover { color: var(--text); }

.form-wrap {
    position: relative; z-index: 1;
    flex: 1; display: flex; align-items: center; justify-content: center;
    padding: 24px 0;
}
.form-card {
    width: 100%; max-width: 420px;
}
.form-card h1 {
    font-size: clamp(28px, 3.5vw, 36px);
    font-weight: 900; letter-spacing: -0.025em;
    line-height: 1.15; margin-bottom: 12px;
    color: var(--text);
}
.form-card .lead {
    font-size: 16px; color: var(--text-dim); margin-bottom: 32px;
}
.error-box {
    background: hsl(0 70% 96%);
    border: 1px solid hsl(0 70% 86%);
    color: hsl(0 70% 35%);
    padding: 12px 16px; border-radius: var(--r-md);
    margin-bottom: 20px; font-size: 14px; font-weight: 500;
    display: flex; gap: 10px; align-items: flex-start;
}
.error-box::before { content: '⚠️'; flex-shrink: 0; }
form .field { margin-bottom: 18px; }
form label {
    display: block; margin-bottom: 7px;
    font-weight: 600; font-size: 14px; color: var(--text);
}
form input {
    width: 100%; padding: 13px 16px;
    border: 1.5px solid var(--border-strong);
    border-radius: var(--r-md);
    font-family: inherit; font-size: 15px;
    background: var(--bg);
    transition: border-color .15s, box-shadow .15s;
}
form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px hsl(250 89% 60% / 0.12);
}
.form-row {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 24px; font-size: 13px; color: var(--text-mute);
}
.form-row a { font-weight: 600; }
.btn-submit {
    width: 100%; padding: 14px;
    background: var(--primary); color: white;
    border: none; border-radius: var(--r-pill);
    font-family: inherit; font-size: 15px; font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow-purple);
    transition: background .15s, transform .15s, box-shadow .2s;
}
.btn-submit:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 16px 48px -8px hsl(250 89% 60% / 0.5);
}
.form-footer {
    position: relative; z-index: 1;
    text-align: center;
    font-size: 13px; color: var(--text-mute);
    padding-top: 16px;
}

/* ── Left side: moment image ───────────────────────────────────── */
.moment {
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, var(--primary) 0%, hsl(265 89% 60%) 100%);
}
.moment img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}
.moment::after {
    content: ''; position: absolute; inset: 0;
    background:
        linear-gradient(135deg,
            hsla(250, 89%, 30%, 0.55) 0%,
            hsla(250, 89%, 50%, 0.4) 40%,
            hsla(265, 89%, 50%, 0.35) 100%);
    pointer-events: none;
}
.moment-content {
    position: absolute; inset: 0;
    display: flex; flex-direction: column;
    justify-content: flex-end;
    padding: 48px;
    color: white;
    z-index: 1;
}
.moment-quote {
    font-size: clamp(24px, 2.6vw, 32px);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.015em;
    max-width: 460px;
    margin-bottom: 20px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.25);
}
.moment-quote .accent {
    background: linear-gradient(135deg, #ffffff 0%, hsl(250 89% 90%) 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
/* Decorative top stat pill on the moment side */
.moment-stat {
    position: absolute; top: 40px; right: 40px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.22);
    color: white; padding: 10px 16px;
    border-radius: var(--r-pill);
    font-size: 13px; font-weight: 600;
    z-index: 1;
    display: flex; gap: 8px; align-items: center;
}
.moment-stat .pulse {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--whatsapp);
    box-shadow: 0 0 10px var(--whatsapp);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.4); }
}

/* ── Sign-up / forgot password (2026-10-06) ───────────────────────── */
.notice-box {
    background: hsl(150 60% 96%);
    border: 1px solid hsl(150 50% 82%);
    color: hsl(150 60% 24%);
    padding: 12px 16px; border-radius: var(--r-md);
    margin-bottom: 20px; font-size: 14px; font-weight: 500;
    display: flex; gap: 10px; align-items: flex-start;
}
.notice-box::before { content: '✓'; font-weight: 800; flex-shrink: 0; }
.steps { display: flex; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; font-size: 13px; }
.steps li { flex: 1; text-align: center; padding: 7px 4px; border-radius: var(--r-pill);
            background: var(--bg-soft); color: var(--text-mute); font-weight: 600; }
.steps li.is-done { background: hsl(150 60% 94%); color: hsl(150 60% 26%); }
.steps li.is-now { background: var(--primary-soft); color: var(--primary); }
.code-input { letter-spacing: 0.5em; text-align: center; font-size: 22px !important; font-weight: 700; }
.field .hint { display: block; margin-top: 6px; font-size: 12px; color: var(--text-mute); }
.link-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
            margin-top: 16px; font-size: 13px; color: var(--text-mute); }
.link-row form { display: inline; margin: 0; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-weight: 600;
            color: var(--primary); cursor: pointer; }
.link-btn:hover { color: var(--primary-hover); text-decoration: underline; }
.trap { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.attribution { margin-top: 6px; font-size: 11px; color: var(--text-mute); }
.attribution a { color: inherit; text-decoration: underline; }

/* Terms / privacy consent on the sign-up form (2026-10-07). */
form .consent .check { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; font-size: 13.5px; line-height: 1.5; color: var(--text-mute); cursor: pointer; margin: 0; }
form .consent .check input { width: 18px; height: 18px; min-width: 18px; padding: 0; margin: 2px 0 0; accent-color: var(--primary, hsl(250, 89%, 60%)); }
form .consent .check a { font-weight: 600; }
.form-footer a { color: var(--text-mute); text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.form-footer a:hover { color: var(--primary); }
