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

  :root {
    --green: #55c951;
    --green-dark: #3aaa36;
    --green-light: rgba(85,201,81,0.12);
    --blue: #007AFF;
    --radius: 13.5px;
    --bg: #f2f5f2;
    --card: #ffffff;
    --text: #1a1f1a;
    --muted: #7a8a7a;
    --border: #dde8dd;
  }

  body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg);
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
      radial-gradient(ellipse 65% 55% at 10% 15%, rgba(85,201,81,0.16) 0%, transparent 60%),
      radial-gradient(ellipse 45% 50% at 90% 85%, rgba(85,201,81,0.10) 0%, transparent 60%);
    z-index: 0;
    animation: bgShift 9s ease-in-out infinite alternate;
  }

  @keyframes bgShift {
    0% { transform: scale(1); }
    100% { transform: scale(1.04) translate(-1%, 1%); }
  }

  .container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: min(880px, 95vw);
    min-height: 520px;
    border-radius: calc(var(--radius) * 2);
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(0,0,0,0.12), 0 4px 16px rgba(85,201,81,0.1);
    animation: cardIn 0.65s cubic-bezier(.22,1,.36,1) both;
  }

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

  /* ---- LEFT PANEL ---- */
  .panel-visual {
    background: linear-gradient(150deg, #2db82a 0%, #55c951 50%, #7dd67a 100%);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
    overflow: hidden;
    color: white;
  }

  .panel-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
      radial-gradient(circle 220px at 15% 85%, rgba(255,255,255,0.18), transparent),
      radial-gradient(circle 140px at 85% 15%, rgba(255,255,255,0.12), transparent);
  }

  .blob {
    position: absolute; border-radius: 50%;
    opacity: 0.12; animation: float 6s ease-in-out infinite;
  }
  .blob-1 { width:180px; height:180px; background:white; top:-50px; right:-50px; animation-delay:0s; }
  .blob-2 { width:110px; height:110px; background:#2db82a; bottom:50px; left:10px; animation-delay:2s; }
  .blob-3 { width:55px;  height:55px;  background:white; bottom:170px; right:25px; animation-delay:4s; }

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

  .visual-content { position: relative; z-index: 1; text-align: center; }

  .illustration {
    width: 170px; height: 170px;
    margin: 0 auto 28px;
    filter: drop-shadow(0 12px 32px rgba(0,0,0,0.18));
    animation: illustFloat 4s ease-in-out infinite;
    transition: opacity 0.4s ease;
  }

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

  .panel-visual h2 {
    font-size: 22px; font-weight: 700;
    line-height: 1.3; margin-bottom: 12px;
    transition: opacity 0.3s;
  }

  .panel-visual p {
    font-size: 13.5px; opacity: 0.88;
    line-height: 1.65; max-width: 210px; margin: 0 auto;
    transition: opacity 0.3s;
  }

  /* Step dots */
  .step-dots {
    position: relative; z-index: 1;
    display: flex; gap: 8px;
    margin-top: 32px;
  }

  .dot {
    width: 8px; height: 8px;
    border-radius: 99px;
    background: rgba(255,255,255,0.35);
    transition: all 0.35s cubic-bezier(.22,1,.36,1);
  }

  .dot.active {
    background: white;
    width: 22px;
  }

  /* ---- RIGHT PANEL ---- */
  .panel-form {
    background: var(--card);
    padding: 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  /* Logo */
  .logo-area {
    display: flex; align-items: center;
    gap: 11px; margin-bottom: 34px;
  }
  .logo-area img{
    max-width: 50px;
  }

  .logo-square {
    width: 46px; height: 46px;
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }

  .logo-square svg { width: 24px; height: 24px; }

  .logo-text { font-weight: 700; font-size: 19px; color: var(--text); letter-spacing: -0.2px; }
  .logo-text span { color: var(--green-dark); }

  /* Steps */
  .step { display: none; animation: fadeUp 0.4s ease both; }
  .step.active { display: block; }

  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* Step icon badge */
  .step-icon {
    width: 52px; height: 52px;
    border-radius: var(--radius);
    background: var(--green-light);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 18px;
  }

  .step-icon svg { width: 26px; height: 26px; color: var(--green-dark); }

  .form-title { font-size: 21px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
  .form-subtitle { font-size: 13px; color: var(--muted); margin-bottom: 26px; line-height: 1.6; }
  .form-subtitle strong { color: var(--text); font-weight: 700; }

  /* Fields */
  .field { margin-bottom: 16px; }

  .field label {
    display: block; font-size: 11.5px; font-weight: 700;
    color: var(--text); margin-bottom: 6px;
    letter-spacing: 0.4px; text-transform: uppercase;
  }

  .input-wrap { position: relative; }

  .input-wrap .icon {
    position: absolute; left: 13px; top: 50%;
    transform: translateY(-50%);
    color: var(--muted); width: 15px; height: 15px; pointer-events: none;
  }

  #error_msg{
    color: red; 
    margin-bottom: 24px; 
    display: none;
  }

  .field input {
    width: 100%;
    padding: 12px 14px 12px 38px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px; color: var(--text);
    background: #fafcfa; transition: all 0.2s; outline: none;
  }

  .field input:focus {
    border-color: var(--green); background: white;
    box-shadow: 0 0 0 4px rgba(85,201,81,0.14);
  }

  .field input::placeholder { color: #b0bdb0; }

  .toggle-pw {
    position: absolute; right: 13px; top: 50%;
    transform: translateY(-50%);
    background: none; border: none; cursor: pointer;
    color: var(--muted); padding: 0; display: flex;
  }

  /* OTP inputs */
  .otp-wrap {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin-bottom: 20px;
  }

  .otp-wrap input {
    width: 100%;
    aspect-ratio: 1 / 1.1;
    padding: 0;
    text-align: center;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 20px; font-weight: 700;
    color: var(--text); background: #fafcfa;
    outline: none; transition: all 0.2s;
    caret-color: var(--green);
    min-width: 0;
  }

  .otp-wrap input:focus {
    border-color: var(--green); background: white;
    box-shadow: 0 0 0 3px rgba(85,201,81,0.14);
  }

  .otp-wrap input.filled {
    border-color: var(--green);
    background: var(--green-light);
  }

  /* Password strength */
  .pw-strength { display: flex; gap: 4px; margin-top: 6px; }
  .pw-bar { flex: 1; height: 3px; border-radius: 99px; background: var(--border); transition: background 0.3s; }
  .pw-bar.weak   { background: #f04e4e; }
  .pw-bar.medium { background: #f0a040; }
  .pw-bar.strong { background: var(--green); }

  .pw-hint { font-size: 11.5px; color: var(--muted); margin-top: 6px; }

  /* Buttons */
  .btn-primary {
    width: 100%; padding: 13px;
    background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
    color: white; border: none;
    border-radius: var(--radius);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px; font-weight: 700;
    cursor: pointer; transition: all 0.22s;
  }

  .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(85,201,81,0.42); }
  .btn-primary:active { transform: translateY(0); }

  .btn-primary:disabled {
    opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none;
  }

  .btn-ghost {
    width: 100%; padding: 12px;
    background: transparent;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px; font-weight: 700; color: var(--muted);
    cursor: pointer; transition: all 0.22s;
    margin-top: 10px;
  }

  .btn-ghost:hover { border-color: var(--green); color: var(--green-dark); background: var(--green-light); }

  /* Back link */
  .back-link {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; color: var(--muted);
    text-decoration: none; margin-bottom: 22px;
    transition: color 0.2s; cursor: pointer;
    background: none; border: none; padding: 0;
    font-family: Arial, Helvetica, sans-serif;
  }

  .back-link:hover { color: var(--green-dark); }
  .back-link svg { width: 14px; height: 14px; }

  /* Resend row */
  .resend-row {
    text-align: center; margin-top: 16px;
    font-size: 13px; color: var(--muted);
  }

  .resend-row button {
    background: none; border: none;
    color: var(--blue); font-family: Arial, Helvetica, sans-serif;
    font-size: 13px; cursor: pointer; padding: 0;
    opacity: 0.8;
  }

  .resend-row button:hover { opacity: 1; text-decoration: underline; }

  /* Success checkmark animation */
  .success-wrap {
    text-align: center; padding: 10px 0 20px;
  }

  .checkmark-circle {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: var(--green-light);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    animation: popIn 0.5s cubic-bezier(.22,1,.36,1) both;
  }

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

  .checkmark-circle svg {
    width: 36px; height: 36px;
    color: var(--green-dark);
    animation: drawCheck 0.4s ease 0.3s both;
  }

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

  .success-title { font-size: 21px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
  .success-sub { font-size: 13px; color: var(--muted); line-height: 1.65; max-width: 280px; margin: 0 auto 28px; }

  /* Responsive */
  @media (max-width: 620px) {
    .container { grid-template-columns: 1fr; }
    .panel-visual { display: none; }
    .panel-form { padding: 34px 26px; }
  }