/* =============================================
   PHASE SYSTEM
   ============================================= */
.phase { display: none; }
.phase.active { display: block; }

/* =============================================
   REGISTRATION — light, product-form aesthetic
   ============================================= */
.register-screen {
  min-height: 100vh;
  padding: 88px 48px 72px;
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 2;
}
.register-card {
  max-width: 580px; width: 100%;
  background: var(--white);
  border: 0.5px solid var(--ink-08);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
}
.register-kicker {
  font-family: var(--font-label);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--red); margin-bottom: 18px;
  display: flex; align-items: center; gap: 12px;
}
.register-kicker::before {
  content: ""; width: 32px; height: 1px; background: var(--red);
}
.register-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.02; letter-spacing: -0.03em;
  color: var(--ink); margin-bottom: 14px;
}
.register-title .accent { color: var(--red); font-style: normal; }
.register-hint {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px; line-height: 1.6;
  color: var(--ink-50);
  margin-bottom: 32px; max-width: 48ch;
}

/* Form groups */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; margin-bottom: 8px;
  font-family: 'DM Mono', monospace;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-50); font-weight: 500;
}
.required { color: var(--red); font-weight: 700; }

.form-group input {
  width: 100%;
  background: var(--cream);
  border: 0.5px solid var(--ink-08);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px; line-height: 1.4;
  color: var(--ink); caret-color: var(--red);
  transition: border-color var(--t-fast), background var(--t-fast);
}
.form-group input:focus {
  outline: none; border-color: var(--red-30); background: var(--white);
}
.form-group input::placeholder { color: var(--ink-40); }

/* Phone input group */
.phone-input-group {
  display: flex; align-items: stretch; gap: 0;
  border: 0.5px solid var(--ink-08); border-radius: var(--radius-sm);
  background: var(--cream);
  overflow: hidden;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.phone-input-group:focus-within { border-color: var(--red-30); background: var(--white); }
.phone-country-select {
  width: 60px; padding: 13px 6px;
  border: none; background: transparent;
  font-size: 18px; cursor: pointer; appearance: none; -webkit-appearance: none;
  text-align: center;
  border-right: 0.5px solid var(--ink-08);
  color: var(--ink);
}
.phone-country-select:focus { outline: none; }
.phone-country-select option { background: var(--white); color: var(--ink); }
.phone-code {
  display: flex; align-items: center; padding: 0 12px;
  font-family: 'DM Mono', monospace;
  font-size: 13px; font-weight: 500; color: var(--ink);
  border-right: 0.5px solid var(--ink-08);
  background: var(--cream);
  min-width: 56px; justify-content: center;
}
.phone-number-input {
  flex: 1;
  border: none !important; background: transparent !important;
  padding: 13px 14px;
  font-family: 'DM Sans', sans-serif; font-size: 15px;
  color: var(--ink); caret-color: var(--red);
}
.phone-number-input:focus { outline: none; }

/* Country select */
.country-select {
  width: 100%;
  background: var(--cream);
  border: 0.5px solid var(--ink-08);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-family: 'DM Sans', sans-serif; font-size: 15px;
  color: var(--ink);
  cursor: pointer; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='7'><path d='M0 0l6 7 6-7z' fill='%230A0A14' fill-opacity='0.5'/></svg>");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 36px;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.country-select:focus { outline: none; border-color: var(--red-30); background-color: var(--white); }
.country-select option { background: var(--white); color: var(--ink); }

/* Anonymous toggle */
.anon-toggle {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 18px 20px; margin-bottom: 12px;
  background: var(--cream);
  border: 0.5px solid var(--ink-08);
  border-radius: var(--radius-md);
}
.anon-label { flex: 1; }
.anon-text {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px; font-weight: 600; color: var(--ink);
  margin-bottom: 4px;
}
.anon-hint {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px; line-height: 1.5;
  color: var(--ink-50);
}

.anon-switch {
  position: relative; display: inline-block;
  width: 44px; height: 24px; flex-shrink: 0; margin-top: 2px;
}
.anon-switch input { opacity: 0; width: 0; height: 0; }
.anon-slider {
  position: absolute; cursor: pointer; inset: 0;
  background: var(--ink-20);
  border-radius: var(--radius-pill);
  transition: background var(--t-mid);
}
.anon-slider::before {
  content: ""; position: absolute;
  height: 18px; width: 18px; left: 3px; bottom: 3px;
  background: var(--white); border-radius: 50%;
  transition: transform var(--t-mid);
}
.anon-switch input:checked + .anon-slider { background: var(--red); }
.anon-switch input:checked + .anon-slider::before { transform: translateX(20px); }

.anon-preview {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 22px; padding: 10px 16px;
  font-family: 'DM Mono', monospace;
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-50);
}
.anon-preview-name {
  background: var(--ink); color: var(--on-dark);
  padding: 3px 10px; border-radius: var(--radius-pill);
  font-weight: 500;
}

/* Review block */
.register-review {
  background: var(--cream);
  border: 0.5px solid var(--ink-08);
  border-left: 2px solid var(--red);
  border-radius: var(--radius-md);
  padding: 22px;
  margin-bottom: 22px;
  max-height: 240px; overflow-y: auto;
  color: var(--ink);
}
.register-review h4 {
  font-family: 'DM Mono', monospace;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-50); margin-bottom: 14px; font-weight: 500;
}
.rr-item {
  padding: 10px 0;
  border-bottom: 0.5px dashed var(--ink-08);
}
.rr-item:last-child { border-bottom: none; }
.rr-q {
  font-family: 'DM Mono', monospace;
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--red); margin-bottom: 4px;
}
.rr-a {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px; line-height: 1.55; color: var(--ink);
}

.register-login-link {
  text-align: center; margin-top: 20px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px; color: var(--ink-50);
}
.register-login-link a {
  color: var(--red); text-decoration: none;
  border-bottom: 0.5px solid var(--red);
  margin-left: 6px; cursor: pointer;
}
.register-login-link a:hover { color: var(--ink); border-color: var(--ink); }

@media (max-width: 600px) {
  .register-screen { padding: 80px 20px 72px; }
  .register-card { padding: 32px 24px; }
}
