:root {
  --bg: #eef2f7;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --accent: #0d9488;
  --accent-hover: #0f766e;
  --shadow: 0 12px 40px -12px rgba(15, 23, 42, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  font-size: 15px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.card {
  max-width: 420px;
  margin: clamp(24px, 5vw, 48px) auto;
  padding: clamp(24px, 4vw, 36px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.page-head {
  margin-bottom: 24px;
}

.brand-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 8px;
}

h1 {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.sub {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 22px;
  padding: 4px;
  background: #f1f5f9;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.tab {
  flex: 1;
  border: none;
  background: transparent;
  border-radius: 9px;
  padding: 10px 14px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

.tab:hover {
  color: var(--text);
}

.tab.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

label {
  display: block;
  margin: 14px 0 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
}

section > label:first-of-type {
  margin-top: 0;
}

input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 1rem;
  font-family: inherit;
  background: #fafafa;
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

input:hover {
  border-color: #cbd5e1;
}

input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.2);
}

.btn {
  margin-top: 18px;
  width: 100%;
  border: 0;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, #14b8a6 0%, var(--accent) 100%);
  color: #fff;
  padding: 12px 16px;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.35);
  transition: transform 0.1s, filter 0.15s;
}

.btn:hover {
  filter: brightness(1.05);
}

.btn:active {
  transform: scale(0.99);
}

.msg {
  margin-top: 16px;
  font-size: 0.875rem;
  min-height: 1.25em;
  line-height: 1.4;
}

.ok {
  color: #047857;
}

.err {
  color: #b91c1c;
}

.hidden {
  display: none !important;
}

.section-foot {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.section-foot h3 {
  margin: 0 0 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.small {
  margin: 0;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.55;
}
