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

:root {
  --brand-green:  #2a7a1e;
  --brand-dark:   #1a5212;
  --brand-blue:   #29a8e0;
  --google-blue:  #4285F4;
  --fb-blue:      #1877F2;
  --text:         #1a2e1a;
  --muted:        #555;
  --border:       #d8e8d8;
  --bg:           #f2f8f0;
  --card-bg:      #ffffff;
  --red:          #d32f2f;
  --radius:       12px;
  --shadow:       0 8px 32px rgba(0,80,0,0.13);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(150deg, #1a5212 0%, #29a8e0 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  color: var(--text);
}

/* ── Card ─────────────────────────────────────────────────────────────────── */
.portal-wrap {
  width: 100%;
  max-width: 420px;
}

.portal-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px 32px 28px;
}

/* ── Header ───────────────────────────────────────────────────────────────── */
.portal-header {
  text-align: center;
  margin-bottom: 24px;
}

.portal-logo {
  width: 100%;
  max-width: 280px;
  height: auto;
  display: block;
  margin: 0 auto 8px;
}

.tagline {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.1s;
}

.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn-social { margin-bottom: 10px; }

.btn-google {
  background: #fff;
  border: 1.5px solid var(--border);
  color: var(--text);
}
.btn-google:hover { background: #f7f9ff; }

.btn-facebook {
  background: var(--fb-blue);
  color: #fff;
}
.btn-facebook:hover { background: #166fe5; }

.btn-primary {
  background: var(--brand-green);
  color: #fff;
  white-space: nowrap;
  padding: 11px 18px;
  min-width: 110px;
}
.btn-primary:hover { background: var(--brand-dark); }

/* ── Divider ──────────────────────────────────────────────────────────────── */
.divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
  color: var(--muted);
  font-size: 13px;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Forms ────────────────────────────────────────────────────────────────── */
.form-block {
  margin-bottom: 4px;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.input-row {
  display: flex;
  gap: 8px;
}

input[type="email"],
input[type="tel"],
input[type="number"] {
  flex: 1;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
  -moz-appearance: textfield;
}

input:focus { border-color: var(--brand-green); }
input::placeholder { color: #aab; }

/* hide number arrows */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; }

.hint {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}

.form-error {
  margin-top: 8px;
  color: var(--red);
  font-size: 13px;
}

.link {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--brand-blue);
  cursor: pointer;
  text-decoration: underline;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
.terms {
  margin-top: 24px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.terms a { color: var(--brand-green); text-decoration: none; }
.terms a:hover { text-decoration: underline; }

/* ── Success Page ─────────────────────────────────────────────────────────── */
.success-card {
  text-align: center;
  padding: 48px 32px;
}
.success-icon { font-size: 56px; margin-bottom: 16px; }
.success-card h1 { font-size: 24px; color: var(--brand-green); margin-bottom: 8px; }
.success-card p  { color: var(--muted); font-size: 15px; line-height: 1.6; margin-bottom: 6px; }
.success-card .speed { margin-top: 20px; font-size: 13px; color: var(--muted); }

/* ── Mobile ───────────────────────────────────────────────────────────────── */
@media (max-width: 440px) {
  .portal-card { padding: 28px 20px 22px; }
  .input-row { flex-direction: column; }
  .btn-primary { width: 100%; }
}
