/* OurCo Auth Portal — branded login splash.
 * Vanilla CSS only. Single accent color, serif headlines, black/white base. */

:root {
  --ink: #0a0a0a;
  --ink-soft: #4a4a4a;
  --ink-muted: #7a7a7a;
  --paper: #fafaf7;
  --paper-soft: #f1f0eb;
  --line: #e5e3dd;
  --accent: #b04a2f;      /* terracotta — OurCo house accent */
  --accent-ink: #ffffff;
  --apple: #000000;
  --google: #ffffff;
  --google-ink: #1f1f1f;
  --google-line: #dadce0;
  --microsoft: #2f2f2f;
  --shadow-soft: 0 1px 2px rgba(10, 10, 10, 0.04), 0 8px 24px rgba(10, 10, 10, 0.06);
  --radius: 14px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
}

body.portal {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  -webkit-font-smoothing: antialiased;
}

.card {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px 28px;
  box-shadow: var(--shadow-soft);
}

.card__header { margin-bottom: 24px; text-align: center; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
  margin-bottom: 18px;
}

.brand__mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), #d96a4c);
  display: inline-block;
}

.brand__name {
  font-family: "New York", "Iowan Old Style", "Charter", Georgia, serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.hero {
  font-family: "New York", "Iowan Old Style", "Charter", Georgia, serif;
  font-size: 28px;
  font-weight: 600;
  margin: 4px 0 6px;
  letter-spacing: -0.015em;
}

.hero__sub {
  color: var(--ink-soft);
  margin: 0 0 8px;
  font-size: 15px;
}

.app-tag {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 10px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.providers {
  display: flex; flex-direction: column; gap: 10px;
  margin-bottom: 18px;
}

.provider {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  height: 46px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 500;
  cursor: pointer;
  transition: transform 80ms ease, box-shadow 120ms ease, background 120ms ease;
}
.provider:hover { transform: translateY(-1px); box-shadow: 0 2px 6px rgba(0,0,0,0.05); }
.provider:active { transform: translateY(0); }
.provider:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.provider--apple { background: var(--apple); color: #fff; }
.provider--google { background: var(--google); color: var(--google-ink); border-color: var(--google-line); }
.provider--microsoft { background: var(--microsoft); color: #fff; }

.provider__icon {
  width: 18px; height: 18px;
  display: inline-block;
  background-position: center; background-repeat: no-repeat; background-size: contain;
}
.provider--apple .provider__icon {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'><path d='M16.365 1.43c0 1.14-.49 2.27-1.27 3.06-.84.85-2.2 1.52-3.34 1.43-.13-1.11.42-2.27 1.18-3.05.86-.9 2.32-1.55 3.43-1.44zm4.3 17.34c-.5 1.13-.74 1.63-1.4 2.63-.9 1.35-2.17 3.03-3.74 3.04-1.4 0-1.76-.92-3.66-.91-1.9.01-2.29.92-3.7.91-1.57-.01-2.78-1.52-3.68-2.87-2.51-3.78-2.78-8.21-1.23-10.57.1-.16.65-1.04 1.62-1.62 1.36-.81 2.45-.9 2.86-.9 1.18 0 1.93.5 2.84.5.89 0 1.43-.5 2.79-.5.41 0 1.55.05 2.96 1.04-2.61 1.4-2.18 5.16.34 6.25z'/></svg>");
}
.provider--google .provider__icon {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%234285F4' d='M22.5 12.27c0-.78-.07-1.53-.2-2.27H12v4.51h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.22-4.74 3.22-8.32z'/><path fill='%2334A853' d='M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.99.67-2.26 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z'/><path fill='%23FBBC05' d='M5.84 14.1A6.6 6.6 0 015.5 12c0-.73.13-1.44.34-2.1V7.06H2.18A11 11 0 001 12c0 1.77.42 3.44 1.18 4.94l3.66-2.84z'/><path fill='%23EA4335' d='M12 5.36c1.62 0 3.07.56 4.21 1.65l3.16-3.16C17.45 2.06 14.96 1 12 1 7.7 1 3.99 3.47 2.18 7.06l3.66 2.84C6.71 7.29 9.14 5.36 12 5.36z'/></svg>");
}
.provider--microsoft .provider__icon {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><rect x='1' y='1' width='10' height='10' fill='%23F25022'/><rect x='13' y='1' width='10' height='10' fill='%237FBA00'/><rect x='1' y='13' width='10' height='10' fill='%2300A4EF'/><rect x='13' y='13' width='10' height='10' fill='%23FFB900'/></svg>");
}

.divider {
  display: flex; align-items: center; gap: 12px;
  color: var(--ink-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 14px 0 12px;
}
.divider::before, .divider::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}

.email-form {
  display: flex; flex-direction: column; gap: 10px;
}

.email-form__label {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: -4px;
}

.email-form input {
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  font-size: 15px;
  color: var(--ink);
  transition: border-color 100ms ease, background 100ms ease;
}
.email-form input:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
}

.primary {
  height: 46px;
  margin-top: 4px;
  background: var(--accent);
  color: var(--accent-ink);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: filter 100ms ease, transform 80ms ease;
}
.primary:hover { filter: brightness(0.95); }
.primary:active { transform: translateY(1px); }
.primary:disabled { opacity: 0.5; cursor: not-allowed; }

.status {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--ink-soft);
  min-height: 1.2em;
  text-align: center;
}
.status.is-error { color: #b3261e; }
.status.is-success { color: #1f7a3a; }

.alt-links {
  margin-top: 18px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-muted);
}
.alt-links a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 1px; }
.alt-links a:hover { border-color: var(--accent); }

.footer {
  margin-top: 24px;
  font-size: 12px;
  color: var(--ink-muted);
  display: flex; gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer a { color: var(--ink-muted); text-decoration: none; }
.footer a:hover { color: var(--ink); }

.manual-return {
  text-align: center;
  margin-top: 18px;
  font-size: 13px;
  color: var(--ink-soft);
}
.manual-return a { color: var(--accent); }

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f1f0eb;
    --ink-soft: #c8c6bf;
    --ink-muted: #8a8884;
    --paper: #0a0a0a;
    --paper-soft: #1a1a18;
    --line: #2a2a26;
    --google: #ffffff;
    --google-ink: #1f1f1f;
    --google-line: #dadce0;
  }
  .card { background: #141413; }
  .email-form input { background: #1c1c1a; color: var(--ink); }
}
