:root {
    --bg: #0b0e17;
    --surface: #131722;
    --border: #1e2535;
    --accent: #e8ff47;
    --accent2: #4fffb0;
    --text: #f0f4ff;
    --muted: #5a6480;
    --error: #ff5f6d;
    --success: #4fffb0;
    --radius: 12px;
  }
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  body {
    background: var(--bg);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
  }
  /* background grid */
  body::before {
    content: '';
    position: fixed; inset: 0;
    background-image:
      linear-gradient(rgba(232,255,71,.04) 1px, transparent 1px),
      linear-gradient(90deg, rgba(232,255,71,.04) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
  }
  /* glow blob */
  body::after {
    content: '';
    position: fixed;
    width: 600px; height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(79,255,176,.12) 0%, transparent 70%);
    top: -100px; right: -150px;
    pointer-events: none;
    animation: blobPulse 6s ease-in-out infinite;
  }
  @keyframes blobPulse {
    0%,100% { transform: scale(1); opacity: .7; }
    50% { transform: scale(1.1); opacity: 1; }
  }

  .wrapper {
    display: flex;
    width: 100%;
    max-width: 980px;
    min-height: 600px;
    margin: 2rem;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 40px 120px rgba(0,0,0,.6);
    animation: slideUp .6s cubic-bezier(.22,1,.36,1) both;
  }
  @keyframes slideUp {
    from { opacity:0; transform: translateY(30px); }
    to   { opacity:1; transform: translateY(0); }
  }

  /* Left panel */
  .panel-left {
    flex: 1;
    background: linear-gradient(135deg, #0d1220 0%, #101929 100%);
    padding: 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: 1px solid var(--border);
    position: relative;
    overflow: hidden;
  }
  .panel-left::before {
    content: '';
    position: absolute;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(232,255,71,.15) 0%, transparent 70%);
    bottom: -50px; left: -50px;
    border-radius: 50%;
  }
  .logo {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: -0.03em;
    color: var(--text);
  }
  .logo span { color: var(--accent); }
  .panel-tagline {
    position: relative;
    z-index: 1;
  }
  .panel-tagline h2 {
    font-family: 'Syne', sans-serif;
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
  }
  .panel-tagline h2 em {
    font-style: normal;
    color: var(--accent);
  }
  .panel-tagline p {
    color: var(--muted);
    font-size: .95rem;
    line-height: 1.7;
  }
  .feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .6rem;
    margin-top: 1.5rem;
  }
  .feature-list li {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: .88rem;
    color: var(--muted);
  }
  .feature-list li::before {
    content: '✦';
    color: var(--accent2);
    font-size: .7rem;
  }
  .already {
    font-size: .85rem;
    color: var(--muted);
  }
  .already a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
  }
  .already a:hover { text-decoration: underline; }

  /* Right panel — form */
  .panel-right {
    flex: 1.1;
    background: var(--surface);
    padding: 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .form-header { margin-bottom: 2rem; }
  .form-header h1 {
    font-family: 'Syne', sans-serif;
    font-size: 1.9rem;
    font-weight: 700;
    letter-spacing: -0.02em;
  }
  .form-header p {
    color: var(--muted);
    font-size: .9rem;
    margin-top: .4rem;
  }

  .form-row { display: flex; gap: 1rem; }
  .form-row .field { flex: 1; }

  .field { margin-bottom: 1.1rem; position: relative; }
  .field label {
    display: block;
    font-size: .8rem;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: .45rem;
  }
  .field input, .field select {
    width: 100%;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: .75rem 1rem;
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-size: .95rem;
    transition: border-color .2s, box-shadow .2s;
    outline: none;
    appearance: none;
  }
  .field input:focus, .field select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(232,255,71,.12);
  }
  .field input.error { border-color: var(--error); }
  .field input.valid { border-color: var(--success); }
  .field .err-msg {
    font-size: .78rem;
    color: var(--error);
    margin-top: .3rem;
    display: none;
  }
  .field .err-msg.show { display: block; animation: fadeIn .2s; }
  @keyframes fadeIn { from { opacity:0; } to { opacity:1; } }

  /* password strength */
  .strength-bar {
    display: flex; gap: 4px; margin-top: .5rem;
  }
  .strength-bar span {
    flex: 1; height: 3px; border-radius: 2px;
    background: var(--border);
    transition: background .3s;
  }
  .strength-label {
    font-size: .75rem; color: var(--muted); margin-top: .3rem;
  }

  .checkbox-field {
    display: flex; align-items: flex-start; gap: .7rem;
    margin-bottom: 1.2rem;
  }
  .checkbox-field input[type="checkbox"] {
    accent-color: var(--accent);
    width: 16px; height: 16px;
    margin-top: 2px; flex-shrink: 0;
    cursor: pointer;
  }
  .checkbox-field label {
    font-size: .85rem; color: var(--muted); line-height: 1.5;
    cursor: pointer;
  }
  .checkbox-field label a {
    color: var(--accent); text-decoration: none;
  }

  .btn-submit {
    width: 100%;
    padding: .85rem;
    background: var(--accent);
    color: #0b0e17;
    border: none; border-radius: var(--radius);
    font-family: 'Syne', sans-serif;
    font-size: 1rem; font-weight: 700;
    letter-spacing: .02em;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s;
    position: relative; overflow: hidden;
  }
  .btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(232,255,71,.35);
  }
  .btn-submit:active { transform: translateY(0); }
  .btn-submit.loading { pointer-events: none; opacity: .7; }

  .success-msg {
    display: none;
    text-align: center;
    padding: 1.5rem;
    border: 1px solid var(--success);
    border-radius: var(--radius);
    color: var(--success);
    margin-top: 1rem;
    font-size: .95rem;
    animation: fadeIn .4s;
  }
  .success-msg.show { display: block; }

  @media(max-width: 720px){
    .wrapper { flex-direction: column; margin: 1rem; }
    .panel-left { padding: 2rem; }
    .panel-right { padding: 2rem; }
    .form-row { flex-direction: column; gap: 0; }
  }