:root {
      --bg: #f4f7fb;
      --panel: rgba(255,255,255,0.85);
      --border: rgba(15,23,42,0.08);
      --text: #0f172a;
      --muted: #5b6475;
      --teal: #0f9b8e;
      --indigo: #4f46e5;
      --danger: #dc2626;
      --success: #16a34a;
      --shadow: 0 24px 60px rgba(15,23,42,0.14);
    }
    * { box-sizing: border-box; }
    body {
      margin: 0;
      min-height: 100vh;
      font-family: Inter, sans-serif;
      color: var(--text);
      background:
        radial-gradient(circle at top left, rgba(79,70,229,0.18), transparent 28%),
        radial-gradient(circle at bottom right, rgba(15,155,142,0.22), transparent 30%),
        linear-gradient(180deg, #f7fafc 0%, #eef3f9 100%);
      display: grid;
      place-items: center;
      padding: 24px;
    }
    .shell {
      width: 100%;
      max-width: 1020px;
      display: grid;
      grid-template-columns: 1.05fr 0.95fr;
      background: var(--panel);
      backdrop-filter: blur(18px);
      border: 1px solid var(--border);
      border-radius: 28px;
      overflow: hidden;
      box-shadow: var(--shadow);
    }
    .hero {
      padding: 44px;
      background:
        linear-gradient(145deg, rgba(79,70,229,0.96), rgba(15,155,142,0.92)),
        linear-gradient(145deg, #1d4ed8, #0f766e);
      color: #fff;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      min-height: 640px;
    }
    .brand {
      display: flex;
      align-items: center;
      gap: 12px;
      font-weight: 800;
      letter-spacing: -0.02em;
      font-size: 1.35rem;
    }
    .brand-mark {
      width: 44px;
      height: 44px;
      border-radius: 14px;
      background: rgba(255,255,255,0.18);
      display: grid;
      place-items: center;
      font-size: 1.2rem;
      border: 1px solid rgba(255,255,255,0.18);
    }
    .hero-copy h1 {
      font-size: clamp(2rem, 3vw, 2.8rem);
      line-height: 1.08;
      margin: 0 0 14px;
      letter-spacing: -0.04em;
    }
    .hero-copy p {
      margin: 0;
      max-width: 440px;
      color: rgba(255,255,255,0.88);
      line-height: 1.65;
      font-size: 1rem;
    }
    .security-points {
      display: grid;
      gap: 12px;
      margin-top: 24px;
    }
    .security-item {
      border: 1px solid rgba(255,255,255,0.16);
      background: rgba(255,255,255,0.1);
      border-radius: 16px;
      padding: 14px 16px;
      font-size: 0.92rem;
      line-height: 1.5;
    }
    .panel {
      padding: 44px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      background: rgba(255,255,255,0.85);
    }
    .eyebrow {
      font-size: 0.82rem;
      font-weight: 700;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--teal);
      margin-bottom: 12px;
    }
    .panel h2 {
      margin: 0 0 8px;
      font-size: 1.9rem;
      letter-spacing: -0.04em;
    }
    .panel p.desc {
      margin: 0 0 24px;
      color: var(--muted);
      line-height: 1.6;
      font-size: 0.95rem;
    }
    .tabs {
      display: flex;
      gap: 8px;
      margin-bottom: 20px;
      background: rgba(15,23,42,0.04);
      padding: 4px;
      border-radius: 12px;
    }
    .tab-btn {
      flex: 1;
      padding: 10px;
      border: 0;
      background: transparent;
      font: inherit;
      font-weight: 600;
      font-size: 0.9rem;
      color: var(--muted);
      border-radius: 8px;
      cursor: pointer;
      transition: all 0.2s;
    }
    .tab-btn.active {
      background: #fff;
      color: var(--indigo);
      box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    }
    form {
      display: grid;
      gap: 14px;
    }
    label {
      font-size: 0.88rem;
      font-weight: 600;
      color: var(--text);
      display: block;
      margin-bottom: 4px;
    }
    input, textarea {
      width: 100%;
      border: 1px solid rgba(15,23,42,0.14);
      background: rgba(255,255,255,0.92);
      border-radius: 14px;
      padding: 14px 16px;
      font: inherit;
      color: var(--text);
      outline: none;
      transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }
    input:focus {
      border-color: rgba(79,70,229,0.45);
      box-shadow: 0 0 0 4px rgba(79,70,229,0.12);
    }
    button.primary-btn {
      border: 0;
      border-radius: 14px;
      padding: 14px 18px;
      font: inherit;
      font-weight: 700;
      color: #fff;
      cursor: pointer;
      background: linear-gradient(135deg, var(--indigo), #2563eb);
      box-shadow: 0 12px 24px rgba(79,70,229,0.22);
      transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
      margin-top: 6px;
    }
    button.primary-btn:hover { transform: translateY(-1px); box-shadow: 0 16px 28px rgba(79,70,229,0.28); }
    button.primary-btn:disabled { opacity: 0.65; cursor: wait; transform: none; }
    .msg {
      min-height: 20px;
      font-size: 0.88rem;
      font-weight: 600;
      margin-top: 4px;
    }
    .msg.error { color: var(--danger); }
    .msg.success { color: var(--success); }
    .meta {
      margin-top: 18px;
      color: var(--muted);
      font-size: 0.82rem;
      line-height: 1.5;
    }
    .sub-link {
      color: var(--indigo);
      text-decoration: none;
      font-weight: 600;
      cursor: pointer;
    }
    .sub-link:hover { text-decoration: underline; }
    .resend-card {
      display: flex;
      align-items: center;
      gap: 12px;
      width: 100%;
      padding: 12px 14px;
      border: 1px solid rgba(79,70,229,0.16);
      border-radius: 16px;
      background: linear-gradient(135deg, rgba(79,70,229,0.07), rgba(15,155,142,0.08));
      color: var(--text);
      cursor: pointer;
      text-align: left;
      transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    }
    .resend-card:hover { transform: translateY(-1px); border-color: rgba(79,70,229,0.35); box-shadow: 0 10px 22px rgba(79,70,229,0.11); }
    .resend-card:focus-visible, .icon-btn:focus-visible, .secondary-btn:focus-visible { outline: 3px solid rgba(79,70,229,0.28); outline-offset: 2px; }
    .resend-card:disabled { cursor: wait; opacity: 0.68; transform: none; }
    .resend-icon {
      width: 34px;
      height: 34px;
      border-radius: 11px;
      display: grid;
      place-items: center;
      flex: 0 0 auto;
      background: linear-gradient(135deg, var(--indigo), #2563eb);
      color: #fff;
      font-size: 1rem;
      box-shadow: 0 6px 14px rgba(79,70,229,0.24);
    }
    .resend-copy { display: grid; gap: 2px; }
    .resend-copy strong { font-size: 0.86rem; }
    .resend-copy span { color: var(--muted); font-size: 0.76rem; line-height: 1.35; }
    .modal-layer {
      position: fixed;
      inset: 0;
      z-index: 20;
      display: grid;
      place-items: center;
      padding: 24px;
      background: rgba(15,23,42,0.52);
      backdrop-filter: blur(7px);
    }
    .modal-layer[hidden] { display: none; }
    .modal-card {
      width: min(100%, 510px);
      max-height: min(760px, calc(100vh - 48px));
      overflow-y: auto;
      border: 1px solid rgba(255,255,255,0.68);
      border-radius: 24px;
      padding: 28px;
      background: rgba(255,255,255,0.98);
      box-shadow: 0 30px 80px rgba(15,23,42,0.3);
      animation: modal-in 0.2s ease-out;
    }
    @keyframes modal-in { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
    .modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
    .modal-kicker { color: var(--teal); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 8px; }
    .modal-title { margin: 0; font-size: 1.35rem; letter-spacing: -0.03em; }
    .modal-desc { margin: 8px 0 0; color: var(--muted); font-size: 0.9rem; line-height: 1.55; }
    .icon-btn {
      width: 36px;
      height: 36px;
      flex: 0 0 auto;
      border: 1px solid rgba(15,23,42,0.1);
      border-radius: 11px;
      background: #fff;
      color: var(--muted);
      cursor: pointer;
      font: inherit;
      font-size: 1.25rem;
      line-height: 1;
    }
    .icon-btn:hover { color: var(--text); border-color: rgba(79,70,229,0.28); }
    .email-preview {
      display: flex;
      align-items: center;
      gap: 10px;
      margin: 20px 0;
      padding: 14px;
      border-radius: 16px;
      border: 1px solid rgba(15,155,142,0.18);
      background: rgba(15,155,142,0.08);
      color: #0b625a;
      overflow-wrap: anywhere;
    }
    .email-preview::before { content: '✉'; font-size: 1.1rem; }
    .modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; }
    .secondary-btn {
      border: 1px solid rgba(15,23,42,0.13);
      border-radius: 13px;
      padding: 12px 16px;
      background: #fff;
      color: var(--text);
      cursor: pointer;
      font: inherit;
      font-weight: 700;
    }
    .secondary-btn:hover { border-color: rgba(79,70,229,0.35); background: rgba(79,70,229,0.04); }
    .modal-actions .primary-btn { margin: 0; padding: 12px 16px; }
    body.modal-open { overflow: hidden; }
    @media (max-width: 860px) {
      .shell { grid-template-columns: 1fr; }
      .hero { min-height: auto; gap: 32px; }
      .panel, .hero { padding: 28px; }
    }
    @media (max-width: 520px) {
      body { padding: 12px; }
      .panel, .hero { padding: 24px; }
      .modal-layer { padding: 14px; }
      .modal-card { padding: 22px; border-radius: 20px; }
      .modal-actions { flex-direction: column-reverse; }
      .modal-actions button { width: 100%; }
    }
