  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  :root {
    --rose: #f472b6;
    --rose-light: #fce7f3;
    --turquoise: #2dd4bf;
    --turquoise-light: #ccfbf1;
    --purple: #a78bfa;
    --purple-light: #ede9fe;
    --yellow: #fbbf24;
    --yellow-light: #fef3c7;
    --coral: #fb7185;
    --mint: #6ee7b7;
  }

  html, body {
    min-height: 100vh;
    font-family: 'Sora', sans-serif;
  }

  body {
    background: #0f0a1e;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow-x: hidden;
    position: relative;
  }

  /* ── ANIMATED GRADIENT BG ── */
  .bg-gradient {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: linear-gradient(135deg, #1a0533, #0d1a3a, #0a2820, #1a0533);
    background-size: 400% 400%;
    animation: bgShift 12s ease infinite;
  }

  @keyframes bgShift {
    0%   { background-position: 0% 50%; }
    33%  { background-position: 100% 0%; }
    66%  { background-position: 50% 100%; }
    100% { background-position: 0% 50%; }
  }

  /* ── RAINBOW ARC ── */
  .rainbow-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.35;
  }

  /* ── FLOATING STARS CANVAS ── */
  .stars-canvas {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 2;
  }

  /* ── SPARKLE OVERLAY ── */
  .sparkle {
    position: fixed;
    pointer-events: none;
    z-index: 3;
    animation: sparklePop var(--dur) ease-in-out infinite;
    animation-delay: var(--delay);
    font-size: var(--size);
    left: var(--x);
    top: var(--y);
    opacity: 0;
  }

  @keyframes sparklePop {
    0%, 100% { opacity: 0; transform: scale(0.3) rotate(0deg); }
    50% { opacity: 1; transform: scale(1) rotate(180deg); }
  }

  /* ── CARD ── */
  .card-wrap {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 440px;
  }

  .card {
    background: rgba(255,255,255,0.07);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 28px;
    padding: 2.5rem 2rem 2rem;
    box-shadow: 0 0 60px rgba(167,139,250,0.15), 0 0 120px rgba(45,212,191,0.08);
    animation: cardIn 0.7s cubic-bezier(0.34,1.56,0.64,1) both;
    width: 100%;
  }

  @keyframes cardIn {
    from { opacity: 0; transform: translateY(30px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
  }

  /* ── LOGO ── */
  .logo-area {
    text-align: center;
    margin-bottom: 1.75rem;
    position: relative;
  }

  .logo-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 0.4rem;
    animation: float 4s ease-in-out infinite;
  }

  .logo-sparkle {
    position: absolute;
    font-size: 1.2rem;
    top: 0;
    right: calc(50% - 45px);
    animation: sparklePop 2s ease-in-out infinite;
    color: #fbbf24;
  }

  @keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
  }

  .logo-title {
    font-family: 'Fraunces', serif;
    font-size: 1.7rem;
    font-weight: 600;
    background: linear-gradient(90deg, var(--rose), var(--purple), var(--turquoise), var(--yellow));
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textShimmer 4s linear infinite;
  }

  @keyframes textShimmer {
    0%   { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
  }

  .logo-sub {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-top: 0.25rem;
    font-weight: 300;
  }

  /* ── TABS ── */
  .tabs {
    display: flex;
    background: rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 4px;
    margin-bottom: 1.75rem;
    border: 1px solid rgba(255,255,255,0.08);
  }

  .tab-btn {
    flex: 1;
    padding: 0.55rem;
    border: none;
    background: transparent;
    color: rgba(255,255,255,0.45);
    font-family: 'Sora', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s;
    letter-spacing: 0.02em;
  }

  .tab-btn.active {
    background: linear-gradient(135deg, rgba(167,139,250,0.4), rgba(45,212,191,0.3));
    color: #fff;
    box-shadow: 0 2px 12px rgba(167,139,250,0.25);
  }

  /* ── FORMS ── */
  .form-panel { display: none; }
  .form-panel.active { display: block; }

  .field {
    margin-bottom: 1rem;
  }

  .field label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255,255,255,0.55);
    margin-bottom: 0.45rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .field input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    color: #fff;
    font-family: 'Sora', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  }

  .field input::placeholder { color: rgba(255,255,255,0.25); }

  .field input:focus {
    border-color: rgba(167,139,250,0.6);
    background: rgba(255,255,255,0.09);
    box-shadow: 0 0 0 3px rgba(167,139,250,0.12);
  }

  /* ── SUBMIT BTN ── */
  .btn-submit {
    width: 100%;
    padding: 0.85rem;
    border: none;
    border-radius: 14px;
    font-family: 'Sora', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 0.5rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.18s, box-shadow 0.18s;
    letter-spacing: 0.03em;
  }

  .btn-submit::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--rose), var(--purple), var(--turquoise));
    background-size: 200% 200%;
    animation: btnGradient 3s ease infinite;
    z-index: 0;
  }

  @keyframes btnGradient {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
  }

  .btn-submit span {
    position: relative;
    z-index: 1;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.2);
  }

  .btn-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(167,139,250,0.4); }
  .btn-submit:active { transform: translateY(0) scale(0.98); }

  /* ── DIVIDER ── */
  .divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.25rem 0;
    color: rgba(255,255,255,0.2);
    font-size: 0.75rem;
  }
  .divider::before, .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.1);
  }

  /* ── NOTICE BOX ── */
  .notice {
    background: rgba(167,139,250,0.1);
    border: 1px solid rgba(167,139,250,0.25);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.55;
    text-align: center;
    margin-top: 1rem;
  }

  .notice strong { color: rgba(255,255,255,0.85); }

  /* ── FORGOT / BACK ── */
  .text-link {
    display: block;
    text-align: center;
    margin-top: 1rem;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.35);
    cursor: pointer;
    transition: color 0.2s;
    background: none;
    border: none;
    font-family: 'Sora', sans-serif;
    width: 100%;
    letter-spacing: 0.02em;
  }
  .text-link:hover { color: var(--purple); }

  /* ── SUCCESS STATE ── */
  .success-msg {
    display: none;
    text-align: center;
    padding: 1rem 0;
    animation: cardIn 0.5s ease both;
  }

  .success-msg.show { display: block; }

  .success-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 0.75rem;
    animation: bounceIn 0.6s cubic-bezier(0.34,1.56,0.64,1) both;
  }

  @keyframes bounceIn {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
  }

  .success-msg h3 {
    font-family: 'Fraunces', serif;
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 0.5rem;
  }

  .success-msg p {
    font-size: 0.83rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.6;
  }

  /* ── FOOTER ── */
  .card-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.73rem;
    color: rgba(255,255,255,0.2);
    letter-spacing: 0.04em;
  }

  .card-footer a {
    color: rgba(255,255,255,0.35);
    text-decoration: none;
    transition: color 0.2s;
  }

  .card-footer a:hover { color: var(--turquoise); }
