/* =====================================================
   Public signup funnel
   =====================================================
   Served from this origin, deliberately.

   These pages used the Tailwind CDN like the rest of the portal. That is a
   third-party script with no SRI and no CSP, and on /signup/verify it would
   have been running on the one page in the product that rendered three
   plaintext passwords as text (security review, MEDIUM-6). That page is gone
   - V041 replaced it with /signup/set-password - but the reason survives the
   page: that form now RECEIVES a password, which is no better a thing to hand
   a compromised CDN than showing one. /signup is no better again: it collects
   the email, school name and KVKK consent of every prospect, and a
   compromised CDN rewrites a form as easily as it reads a password.

   The whole public funnel is therefore self-hosted. login.html and the
   authenticated portal still use the CDN - pre-existing, and a separate job.

   Palette matches pages/login.html so the public pages read as one product:
   primary #7DBF9E, secondary #A8D5BA, background #F4FAF6.
   ===================================================== */

:root {
    --primary: #7DBF9E;
    --primary-dark: #6aab8b;
    --background: #F4FAF6;
    --surface: #ffffff;
    --text: #1f2937;
    --text-muted: #6b7280;
    --text-faint: #9ca3af;
    --border: #d1d5db;
    --border-light: #e5e7eb;
    --danger-bg: #fef2f2;
    --danger-border: #fecaca;
    --danger-text: #b91c1c;
    --warn-bg: #fffbeb;
    --warn-border: #fde68a;
    --warn-text: #92400e;
    --radius: 8px;
}

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

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
    background: var(--background);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.5;
}

.wrap { width: 100%; max-width: 32rem; }
.wrap--wide { max-width: 40rem; }
.center { text-align: center; }

.brand { margin: 0; font-size: 2.25rem; font-weight: 700; color: var(--primary); }
.tagline { margin: 8px 0 0; font-size: 1.25rem; color: var(--text); }
.lede { margin: 8px 0 0; font-size: 0.875rem; color: var(--text-muted); }

.card {
    margin-top: 24px;
    padding: 32px;
    background: var(--surface);
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -2px rgba(0, 0, 0, .06);
}

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 4px; }

.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field input[type="tel"],
.field input[type="number"] {
    display: block;
    width: 100%;
    padding: 8px 12px;
    font: inherit;
    font-size: 0.875rem;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
}

/* The identifier on the set-password form: shown so a password manager files
   the new password under the right account, not editable, and visibly so. */
.field input[readonly] { background: var(--background); color: var(--text-muted); }

.field input:focus {
    outline: 2px solid var(--primary);
    outline-offset: 0;
    border-color: var(--primary);
}

.row { display: flex; gap: 16px; }
.row > * { flex: 1 1 0; min-width: 0; }

.hint { margin: 4px 0 0; font-size: 0.75rem; color: var(--text-muted); }
.faint { margin: 4px 0 0; font-size: 0.75rem; color: var(--text-faint); }
.field-error { margin: 4px 0 0; font-size: 0.875rem; color: var(--danger-text); }

.consent { display: flex; align-items: flex-start; gap: 8px; font-size: 0.875rem; }
.consent input { margin-top: 3px; width: 16px; height: 16px; flex: none; accent-color: var(--primary); }

.alert { padding: 12px 16px; border-radius: 6px; font-size: 0.875rem; margin-bottom: 16px; }
.alert--error { background: var(--danger-bg); border: 1px solid var(--danger-border); color: var(--danger-text); }
.alert--warn { background: var(--warn-bg); border: 1px solid var(--warn-border); color: var(--warn-text); }

.btn {
    display: inline-block;
    padding: 10px 18px;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    color: #fff;
    background: var(--primary);
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
}

.btn:hover { background: var(--primary-dark); }
.btn--block { display: block; width: 100%; }
.btn--dark { background: #111827; }
.btn--dark:hover { background: #374151; }

.links { margin-top: 16px; font-size: 0.875rem; color: var(--text-muted); text-align: center; }
.links a, .link { color: var(--primary); font-weight: 500; text-decoration: none; }
.links a:hover, .link:hover { text-decoration: underline; }

.emoji { font-size: 3rem; line-height: 1; }
.stack > * + * { margin-top: 16px; }

.section + .section { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--border-light); }
.section h3 { margin: 0 0 12px; font-size: 0.8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }

.buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

@media (max-width: 480px) {
    .row { display: block; }
    .row > * + * { margin-top: 16px; }
}
