:root {
  --bg: #0b0b0c;
  --panel: #131317;
  --border: #282832;
  --border-strong: #383844;
  --text: #f2f2f5;
  --text-2: #bcbcc8;
  --text-3: #8c8c9a;
  --rose: #d46a58;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --mono: 'JetBrains Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

.wrap { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 1; padding: 36px 20px; }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 36px 32px; max-width: 440px; width: 100%; box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55); }

h1 { font-family: var(--serif); font-size: 2.05rem; font-weight: 600; line-height: 1.15; margin-bottom: 8px; }
.sub { color: var(--text-2); font-size: 0.94rem; line-height: 1.55; margin-bottom: 16px; }
.sent-email { color: #ffffff; font-family: var(--mono); font-size: 0.9rem; font-weight: 600; overflow-wrap: anywhere; }

.email-pill-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: #0b0b0d;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  margin-bottom: 20px;
}

.ep-left {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.ep-icon {
  color: var(--rose);
  font-size: 0.95rem;
  flex-shrink: 0;
}

.ep-edit-btn {
  background: rgba(212, 106, 88, 0.14);
  border: 1px solid rgba(212, 106, 88, 0.4);
  border-radius: 6px;
  color: #ff9e85;
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 5px 10px;
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s;
}

.ep-edit-btn:hover {
  background: var(--rose);
  border-color: var(--rose);
  color: #ffffff;
}

label { display: block; font-size: 0.84rem; font-weight: 500; color: var(--text-2); margin-bottom: 7px; }
input[type="email"],
.code-input {
  width: 100%;
  padding: 12px 14px;
  background: #0b0b0d;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: var(--text);
  font-size: 1rem;
  font-family: var(--sans);
  outline: none;
  margin-bottom: 16px;
  transition: border-color 0.15s;
}
input[type="email"]:focus,
.code-input:focus { border-color: var(--rose); }

.code-input {
  font-family: var(--mono);
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-align: center;
  padding: 14px 12px;
}

.cf-turnstile { margin-bottom: 16px; transform: scale(0.94); transform-origin: left top; }

.btn { width: 100%; padding: 13px; background: var(--rose); color: #fff; border: none; border-radius: 8px; font-size: 0.96rem; font-weight: 600; font-family: var(--sans); cursor: pointer; transition: filter 0.15s; }
.btn:hover { filter: brightness(1.08); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.msg { margin-top: 14px; font-size: 0.88rem; color: var(--text-2); }
.msg:empty { display: none; }
.msg.ok { color: #8fc98c; }
.msg.err { color: #e88b8b; }

.alt { margin-top: 22px; text-align: center; font-size: 0.88rem; color: var(--text-3); }
.alt a { color: var(--rose); font-weight: 500; }
.alt a:hover { text-decoration: underline; }

.mail-badge {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(212, 106, 88, 0.14);
  border: 1px solid rgba(212, 106, 88, 0.42);
  color: #ff9e85;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.verify-help {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 0.83rem;
  color: var(--text-3);
  line-height: 1.55;
  display: grid;
  gap: 8px;
}
.verify-help strong { color: var(--text-2); font-weight: 500; }

.link-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--rose);
  font-family: inherit;
  font-size: inherit;
  font-weight: 500;
  cursor: pointer;
}
.link-btn:hover { text-decoration: underline; }
