/* ─────────────────────────────────────────────
   ID - Investment Decisions — base stylesheet
   All shared variables, resets, form components,
   and page-shell layout live here.
   ───────────────────────────────────────────── */

/* ── Design tokens ──────────────────────────── */
:root {
  --bg: #FAFAF5;
  --surface: #FFFFFF;
  --surface-alt: #F4F1EB;
  --border: #E5E0D8;
  --text: #1A1A1A;
  --muted: #5A5A5A;
  --light: #8A8A8A;
  --green: #1E3A2F;
  --gold: #C9A84C;
  --gold-dim: #9A7A30;
  --fd: 'Cormorant Garamond', Georgia, serif;
  --fb: 'DM Sans', system-ui, sans-serif;
}

/* ── Reset ──────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--fb);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Page shell ─────────────────────────────── */
.wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

.brand-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.brand-top svg { flex-shrink: 0; }

.brand-top-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-top-name {
  font-family: var(--fd);
  font-size: 1.25em;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 600;
}

.brand-top-sub {
  font-size: .58em;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--light);
  font-weight: 400;
  margin-top: 2px;
}

.lang-pill {
  position: fixed;
  top: 14px;
  right: 16px;
  font-size: .65em;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--light);
  padding: 5px 11px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--surface);
  transition: color .15s, border-color .15s;
  text-decoration: none;
}

.lang-pill:hover { color: var(--text); border-color: var(--gold); }

/* ── Card / form components ─────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 48px 52px;
  width: 90%;
  max-width: 440px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, .08);
}

.eyebrow {
  font-size: .7em;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 14px;
  font-weight: 500;
}

.card h1 {
  font-family: var(--fb);
  font-size: 2em;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
  letter-spacing: -.02em;
}

.sub {
  font-size: .875em;
  color: var(--light);
  margin-bottom: 28px;
}

.sub a { color: #5C6B8A; font-weight: 500; }
.sub a:hover { text-decoration: underline; }

.divider {
  width: 36px;
  height: 1px;
  background: var(--gold);
  margin: 16px auto 28px;
}

label {
  display: block;
  font-size: .875em;
  color: var(--muted);
  margin-bottom: 6px;
  font-weight: 500;
}

input[type=text],
input[type=password],
input[type=email] {
  width: 100%;
  padding: 11px 14px;
  font-size: .95em;
  background: #faf9f7;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 6px;
  font-family: inherit;
  transition: border-color .15s;
  margin-bottom: 18px;
}

input:focus {
  outline: none;
  border-color: #5C6B8A;
  box-shadow: 0 0 0 3px rgba(92, 107, 138, .08);
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 2px 0 18px;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}

.checkbox-row input[type=checkbox] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #5C6B8A;
  flex-shrink: 0;
}

.checkbox-row span {
  font-size: .88em;
  line-height: 1.4;
}

.btn {
  display: block;
  width: 100%;
  padding: 13px;
  background: #5C6B8A;
  color: #fff;
  border-radius: 6px;
  font-size: .9em;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: background .15s;
  text-align: center;
  letter-spacing: .01em;
}

.btn:hover { background: #4A5772; }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
  margin-top: 0;
}

.btn-outline:hover { background: var(--surface-alt); border-color: #aaa; }

.or-sep {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--light);
  font-size: .8em;
  letter-spacing: .5px;
}

.or-sep::before,
.or-sep::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.msg-err {
  background: #fdf4f4;
  border: 1px solid #e5c5c5;
  color: #a33;
  border-radius: 6px;
  padding: 9px 12px;
  margin-bottom: 16px;
  font-size: .85em;
}

.msg-ok {
  background: #f0f8f1;
  border: 1px solid #b5d8bc;
  color: #2a6b38;
  border-radius: 6px;
  padding: 9px 12px;
  margin-bottom: 16px;
  font-size: .85em;
}

.small {
  font-size: .78em;
  color: var(--light);
  margin-top: 16px;
  text-align: center;
}

.small a {
  color: #5C6B8A;
  border-bottom: 1px solid transparent;
  transition: border-color .15s;
}

.small a:hover { border-color: #5C6B8A; }
