:root {
      --blush:    #F2D7D5;
      --rose:     #D4889A;
      --rose-dk:  #BB6E82;
      --lavender: #C5C0E0;
      --lilac:    #E8E4F5;
      --sage:     #B8CCBA;
      --cream:    #FDF8F3;
      --dust:     #9B8FA6;
      --ink:      #3D2C3A;
      --mist:     #EDE8F5;
      --white:    #FFFFFF;
      --surface:  #F7F3F8;
      --error:    #D47A7A;
      --success:  #7EB98A;
    }

    *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
    html { scroll-behavior: smooth; }

    body {
      background: var(--cream);
      color: var(--ink);
      font-family: 'DM Sans', sans-serif;
      min-height: 100vh;
      display: flex;
      overflow: hidden;
    }

    /* ─── PETAL CURSOR ─── */
    #cursor-petal {
      position: fixed; pointer-events: none; z-index: 9999;
      width: 18px; height: 18px;
      top: 0; left: 0;
      transform: translate(-50%,-50%);
    }
    #cursor-trail {
      position: fixed; pointer-events: none; z-index: 9998;
      width: 44px; height: 44px;
      border: 1px solid rgba(212,136,154,0.4);
      border-radius: 50%;
      top: 0; left: 0;
      transform: translate(-50%,-50%);
      transition: transform 0.5s cubic-bezier(0.23,1,0.32,1);
    }

    /* ─── FLOATING PETALS ─── */
    .petal-bg {
      position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden;
    }
    .petal {
      position: absolute;
      opacity: 0;
      animation: petal-fall linear infinite;
    }
    .petal svg { opacity: 0.3; }
    @keyframes petal-fall {
      0%   { transform: translateY(-40px) rotate(0deg) translateX(0); opacity: 0; }
      10%  { opacity: 1; }
      90%  { opacity: 0.5; }
      100% { transform: translateY(110vh) rotate(720deg) translateX(60px); opacity: 0; }
    }

    /* ─── LAYOUT ─── */
    .auth-wrapper {
      display: flex;
      width: 100%;
      min-height: 100vh;
    }

    /* ─── LEFT PANEL (Ilustrasi) ─── */
    .auth-left {
      flex: 0 0 48%;
      background: var(--ink);
      position: relative;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 60px 56px;
    }

    /* Gradient blobs */
    .left-bloom {
      position: absolute; border-radius: 50%;
      filter: blur(80px); pointer-events: none;
    }
    .lb-1 {
      width: 500px; height: 500px;
      background: radial-gradient(circle, rgba(197,192,224,0.25) 0%, transparent 70%);
      top: -100px; right: -100px;
      animation: breathe 12s ease-in-out infinite;
    }
    .lb-2 {
      width: 400px; height: 400px;
      background: radial-gradient(circle, rgba(212,136,154,0.2) 0%, transparent 70%);
      bottom: -80px; left: -80px;
      animation: breathe 16s ease-in-out infinite reverse;
    }
    .lb-3 {
      width: 280px; height: 280px;
      background: radial-gradient(circle, rgba(184,204,186,0.18) 0%, transparent 70%);
      top: 45%; left: 50%;
      animation: breathe 10s ease-in-out infinite 3s;
    }
    @keyframes breathe {
      0%,100% { transform: scale(1); opacity: 0.7; }
      50%      { transform: scale(1.12); opacity: 1; }
    }

    /* Arch decoration */
    .left-arch {
      position: absolute; bottom: 0; left: 50%;
      transform: translateX(-50%);
      width: 380px; height: 280px;
      border: 1px solid rgba(212,136,154,0.18);
      border-radius: 190px 190px 0 0;
      border-bottom: none;
    }
    .left-arch-inner {
      position: absolute; bottom: 0; left: 50%;
      transform: translateX(-50%);
      width: 300px; height: 220px;
      border: 1px solid rgba(212,136,154,0.1);
      border-radius: 150px 150px 0 0;
      border-bottom: none;
    }

    .left-content {
      position: relative; z-index: 10;
      text-align: center;
      max-width: 380px;
    }
    .left-logo {
      font-family: 'Great Vibes', cursive;
      font-size: 52px;
      color: var(--rose);
      line-height: 1;
      display: block;
      margin-bottom: 4px;
    }
    .left-logo-sub {
      font-size: 10px;
      font-weight: 500;
      letter-spacing: 0.3em;
      text-transform: uppercase;
      color: rgba(197,192,224,0.6);
      display: block;
      margin-bottom: 48px;
    }

    /* Mock phone illustration */
    .left-phone {
      width: 200px;
      margin: 0 auto 40px;
      background: rgba(255,255,255,0.06);
      border: 1px solid rgba(255,255,255,0.12);
      border-radius: 28px;
      padding: 16px 14px 22px;
      backdrop-filter: blur(8px);
      box-shadow: 0 24px 60px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
    }
    .phone-notch {
      width: 60px; height: 5px;
      background: rgba(255,255,255,0.15);
      border-radius: 10px;
      margin: 0 auto 14px;
    }
    .phone-header {
      text-align: center;
      margin-bottom: 14px;
    }
    .phone-couple {
      font-family: 'Playfair Display', serif;
      font-size: 13px;
      color: rgba(255,255,255,0.9);
    }
    .phone-date {
      font-size: 10px;
      color: rgba(197,192,224,0.6);
      margin-top: 2px;
    }
    .phone-moments {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }
    .phone-moment {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 8px;
      background: rgba(255,255,255,0.05);
      border-radius: 10px;
      border: 1px solid rgba(255,255,255,0.07);
    }
    .pm-thumb {
      width: 36px; height: 36px;
      border-radius: 8px;
      flex-shrink: 0;
    }
    .pm-t1 { background: linear-gradient(135deg, #D4889A, #C5C0E0); }
    .pm-t2 { background: linear-gradient(135deg, #B8CCBA, #D4889A); }
    .pm-t3 { background: linear-gradient(135deg, #C5C0E0, #B8CCBA); }
    .pm-info {}
    .pm-sender {
      font-size: 11px;
      font-weight: 500;
      color: rgba(255,255,255,0.85);
    }
    .pm-meta {
      font-size: 9px;
      color: rgba(197,192,224,0.55);
      margin-top: 2px;
    }
    .pm-tag {
      font-size: 9px;
      color: var(--rose);
      margin-top: 1px;
    }

    /* Stats row */
    .left-stats {
      display: flex;
      gap: 32px;
      justify-content: center;
      margin-top: 0;
    }
    .lst-item {
      text-align: center;
    }
    .lst-val {
      font-family: 'Playfair Display', serif;
      font-size: 22px;
      color: var(--white);
      font-style: italic;
    }
    .lst-label {
      font-size: 9px;
      letter-spacing: 0.12em;
      color: rgba(197,192,224,0.5);
      text-transform: uppercase;
      margin-top: 2px;
    }

    /* ─── RIGHT PANEL (Form) ─── */
    .auth-right {
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 48px 40px;
      position: relative;
      overflow-y: auto;
    }

    .form-card {
      width: 100%;
      max-width: 400px;
      position: relative;
      z-index: 10;
    }

    /* ─── TABS (Login / Daftar) ─── */
    .auth-tabs {
      display: flex;
      background: var(--mist);
      border-radius: 14px;
      padding: 4px;
      margin-bottom: 36px;
      gap: 0;
    }
    .tab-btn {
      flex: 1;
      padding: 11px;
      border: none;
      background: transparent;
      border-radius: 10px;
      font-family: 'DM Sans', sans-serif;
      font-size: 13px;
      font-weight: 500;
      color: var(--dust);
      cursor: pointer;
      transition: all 0.3s cubic-bezier(0.23,1,0.32,1);
      letter-spacing: 0.02em;
    }
    .tab-btn.active {
      background: var(--white);
      color: var(--rose);
      box-shadow: 0 2px 12px rgba(212,136,154,0.18);
    }

    /* ─── FORM HEAD ─── */
    .form-eyebrow {
      font-family: 'Great Vibes', cursive;
      font-size: 22px;
      color: var(--rose);
      display: block;
      margin-bottom: 6px;
      opacity: 0;
      transform: translateY(8px);
      transition: all 0.4s ease;
    }
    .form-eyebrow.visible { opacity: 1; transform: none; }
    .form-title {
      font-family: 'Playfair Display', serif;
      font-size: 28px;
      font-weight: 400;
      color: var(--ink);
      line-height: 1.2;
      margin-bottom: 8px;
      opacity: 0;
      transform: translateY(10px);
      transition: all 0.4s ease 0.06s;
    }
    .form-title.visible { opacity: 1; transform: none; }
    .form-title em { font-style: italic; color: var(--rose); }
    .form-subtitle {
      font-size: 13px;
      color: var(--dust);
      line-height: 1.5;
      margin-bottom: 32px;
      opacity: 0;
      transform: translateY(8px);
      transition: all 0.4s ease 0.1s;
    }
    .form-subtitle.visible { opacity: 1; transform: none; }

    /* ─── FORM FIELDS ─── */
    .field-group {
      margin-bottom: 16px;
    }
    .field-label {
      display: block;
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--dust);
      margin-bottom: 7px;
    }
    .field-wrap {
      position: relative;
    }
    .field-icon {
      position: absolute;
      left: 14px;
      top: 50%;
      transform: translateY(-50%);
      color: var(--lavender);
      pointer-events: none;
      transition: color 0.2s;
    }
    .field-input {
      width: 100%;
      padding: 13px 14px 13px 40px;
      background: var(--white);
      border: 1.5px solid rgba(197,192,224,0.4);
      border-radius: 12px;
      font-family: 'DM Sans', sans-serif;
      font-size: 14px;
      color: var(--ink);
      outline: none;
      transition: all 0.2s;
    }
    .field-input::placeholder { color: rgba(155,143,166,0.45); }
    .field-input:focus {
      border-color: var(--rose);
      box-shadow: 0 0 0 3px rgba(212,136,154,0.12);
    }
    .field-input:focus ~ .field-icon,
    .field-wrap:focus-within .field-icon { color: var(--rose); }
    .field-input.error { border-color: var(--error); }
    .field-input.error:focus { box-shadow: 0 0 0 3px rgba(212,122,122,0.12); }
    .field-error {
      font-size: 11px;
      color: var(--error);
      margin-top: 5px;
      display: none;
    }
    .field-error.show { display: block; }

    /* Password toggle */
    .field-eye {
      position: absolute;
      right: 14px;
      top: 50%;
      transform: translateY(-50%);
      background: none;
      border: none;
      color: var(--lavender);
      cursor: pointer;
      padding: 0;
      transition: color 0.2s;
      line-height: 1;
    }
    .field-eye:hover { color: var(--rose); }

    /* Name row (two columns) */
    .field-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
    }

    /* ─── DIVIDER ─── */
    .form-divider {
      display: flex;
      align-items: center;
      gap: 12px;
      margin: 20px 0;
    }
    .form-divider::before,
    .form-divider::after {
      content: '';
      flex: 1;
      height: 1px;
      background: rgba(197,192,224,0.35);
    }
    .form-divider span {
      font-size: 11px;
      color: var(--dust);
      white-space: nowrap;
      letter-spacing: 0.08em;
    }

    /* ─── BUTTONS ─── */
    .btn-rose {
      width: 100%;
      padding: 14px;
      background: var(--rose);
      color: var(--white);
      border: none;
      border-radius: 12px;
      font-family: 'DM Sans', sans-serif;
      font-size: 14px;
      font-weight: 500;
      letter-spacing: 0.04em;
      cursor: pointer;
      transition: all 0.3s;
      box-shadow: 0 6px 24px rgba(212,136,154,0.35);
      position: relative;
      overflow: hidden;
    }
    .btn-rose:hover {
      transform: translateY(-2px);
      box-shadow: 0 10px 32px rgba(212,136,154,0.5);
    }
    .btn-rose:active { transform: translateY(0); }
    .btn-rose .btn-loading {
      display: none;
      position: absolute;
      inset: 0;
      align-items: center;
      justify-content: center;
      background: var(--rose);
      border-radius: 12px;
    }
    .btn-rose.loading .btn-loading { display: flex; }
    .btn-rose.loading .btn-text { opacity: 0; }

    /* Loading spinner */
    .spinner {
      width: 18px; height: 18px;
      border: 2px solid rgba(255,255,255,0.3);
      border-top-color: white;
      border-radius: 50%;
      animation: spin 0.7s linear infinite;
    }
    @keyframes spin { to { transform: rotate(360deg); } }

    .btn-google {
      width: 100%;
      padding: 13px;
      background: var(--white);
      color: var(--ink);
      border: 1.5px solid rgba(197,192,224,0.45);
      border-radius: 12px;
      font-family: 'DM Sans', sans-serif;
      font-size: 13px;
      font-weight: 400;
      cursor: pointer;
      transition: all 0.2s;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
    }
    .btn-google:hover {
      border-color: var(--lavender);
      background: var(--mist);
    }

    /* ─── FORGOT LINK ─── */
    .form-meta {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 20px;
    }
    .form-check-wrap {
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .form-check {
      width: 16px; height: 16px;
      accent-color: var(--rose);
      cursor: pointer;
    }
    .form-check-label {
      font-size: 12px;
      color: var(--dust);
      cursor: pointer;
    }
    .form-link {
      font-size: 12px;
      color: var(--rose);
      text-decoration: none;
      transition: opacity 0.2s;
    }
    .form-link:hover { opacity: 0.7; text-decoration: underline; }

    /* ─── TERMS ─── */
    .form-terms {
      font-size: 11px;
      color: var(--dust);
      text-align: center;
      line-height: 1.6;
      margin-top: 18px;
    }
    .form-terms a { color: var(--rose); text-decoration: none; }
    .form-terms a:hover { text-decoration: underline; }

    /* ─── SUCCESS STATE ─── */
    .success-state {
      display: none;
      text-align: center;
      padding: 20px 0;
    }
    .success-state.show { display: block; }
    .success-icon {
      width: 64px; height: 64px;
      background: rgba(126,185,138,0.15);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 20px;
      font-size: 28px;
    }
    .success-title {
      font-family: 'Playfair Display', serif;
      font-size: 22px;
      color: var(--ink);
      margin-bottom: 8px;
    }
    .success-sub {
      font-size: 13px;
      color: var(--dust);
      line-height: 1.5;
    }

    /* ─── STRENGTH METER ─── */
    .password-strength {
      margin-top: 8px;
    }
    .strength-bar {
      display: flex;
      gap: 4px;
      margin-bottom: 4px;
    }
    .strength-seg {
      height: 3px;
      flex: 1;
      border-radius: 10px;
      background: rgba(197,192,224,0.3);
      transition: background 0.3s;
    }
    .strength-seg.weak { background: var(--error); }
    .strength-seg.fair { background: var(--rose); }
    .strength-seg.good { background: var(--sage); }
    .strength-seg.strong { background: var(--success); }
    .strength-label {
      font-size: 10px;
      color: var(--dust);
    }

    /* ─── PANEL TOGGLE ─── */
    .panel { display: none; }
    .panel.active { display: block; }

    /* ─── RESPONSIVE ─── */
    @media (max-width: 768px) {
      .auth-left { display: none; }
      .auth-right { padding: 40px 24px; }
      .form-card { max-width: 100%; }
    }

    /* ─── BACK LINK ─── */
    .back-to-home {
      position: fixed;
      top: 28px;
      left: 28px;
      z-index: 200;
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 12px;
      color: rgba(255,255,255,0.55);
      text-decoration: none;
      transition: color 0.2s;
    }
    .back-to-home:hover { color: var(--rose); }
    @media (max-width: 768px) {
      .back-to-home { color: var(--dust); }
      .back-to-home:hover { color: var(--rose); }
    }

    /* ─── COUPLE BADGE ─── */
    .couple-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: rgba(255,255,255,0.07);
      border: 1px solid rgba(212,136,154,0.25);
      padding: 6px 14px 6px 8px;
      border-radius: 40px;
      margin-bottom: 32px;
    }
    .cb-dot {
      width: 6px; height: 6px;
      border-radius: 50%;
      background: var(--rose);
      animation: pulse-dot 2s ease-in-out infinite;
    }
    @keyframes pulse-dot {
      0%,100% { opacity: 1; transform: scale(1); }
      50% { opacity: 0.5; transform: scale(0.8); }
    }
    .cb-text {
      font-size: 10px;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: rgba(255,255,255,0.5);
    }
