:root {
      --primary: #eb7613;
      --primary-dark: #c09e5e;
      --primary-light: #f5a745;
      --secondary: #013d21;
      --secondary-light: #1a5a37;
      --danger: #ef4444;
      --warning: #f59e0b;
      --success: #10b981;
      --neutral-50: #fafbfc;
      --neutral-100: #f3f4f6;
      --neutral-200: #e5e7eb;
      --neutral-300: #d1d5db;
      --neutral-400: #9ca3af;
      --neutral-500: #6b7280;
      --neutral-600: #4b5563;
      --neutral-700: #374151;
      --neutral-800: #1f2937;
      --neutral-900: #111827;
      --radius: 12px;
    }

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

    body {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
      background-color: var(--neutral-50);
      color: var(--neutral-900);
      line-height: 1.6;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
    }

    @keyframes fadeIn     { from { opacity: 0; }                        to { opacity: 1; } }
    @keyframes fadeInUp   { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
    @keyframes slideUp    { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
    @keyframes slideInRight { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: translateX(0); } }
    @keyframes checkBounce { 0% { transform: scale(0); } 60% { transform: scale(1.2); } 100% { transform: scale(1); } }
    @keyframes float      { 0%,100% { transform: translateY(0px); } 50% { transform: translateY(8px); } }
    @keyframes spin       { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
    @keyframes shake      { 0%,100%{transform:translateX(0)} 20%{transform:translateX(-7px)} 40%{transform:translateX(7px)} 60%{transform:translateX(-5px)} 80%{transform:translateX(5px)} }
    @keyframes popIn      { 0%{transform:scale(0.7);opacity:0} 80%{transform:scale(1.05)} 100%{transform:scale(1);opacity:1} }

    /* ===== HEADER ===== */
    header {
      background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 50%, var(--primary) 100%);
      color: white;
      padding: 18px 0;
      box-shadow: 0 8px 24px rgba(0,0,0,0.15);
      position: sticky;
      top: 0;
      z-index: 100;
    }
    .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
    .header-content { display: flex; justify-content: space-between; align-items: center; }
    .header-left { display: flex; align-items: center; gap: 20px; }
    .logo-section { display: flex; align-items: center; gap: 14px; }
    .logo-image {
      width: 56px; height: 56px;
      background-color: rgba(255,255,255,0.15);
      border-radius: 12px;
      display: flex; align-items: center; justify-content: center;
      overflow: hidden;
      backdrop-filter: blur(10px);
      border: 1px solid rgba(255,255,255,0.2);
      animation: slideInRight 0.6s cubic-bezier(0.4,0,0.2,1);
      object-fit: cover;
    }
    .logo-text { display: flex; flex-direction: column; gap: 2px; }
    .logo-text .app-name     { font-size: 20px; font-weight: 700; letter-spacing: -0.3px; }
    .logo-text .app-subtitle { font-size: 12px; opacity: 0.9; font-weight: 500; }
    .header-right { display: flex; gap: 14px; align-items: center; }
    .btn-header-login {
      padding: 9px 20px;
      border: 1.5px solid rgba(255,255,255,0.5);
      background: rgba(255,255,255,0.1);
      color: white;
      border-radius: 10px;
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.25s ease;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      backdrop-filter: blur(10px);
    }
    .btn-header-login:hover { background: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.7); transform: translateY(-1px); }

    /* ===== PAGE LAYOUT ===== */
    .page-body {
      flex: 1;
      display: flex;
      align-items: flex-start;
      justify-content: center;
      padding: 48px 20px 60px;
      animation: fadeIn 0.5s ease-out;
    }

    /* ===== CARD ===== */
    .register-card {
      background: white;
      border-radius: 20px;
      box-shadow: 0 8px 40px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
      border: 1px solid var(--neutral-100);
      width: 100%;
      max-width: 520px;
      overflow: hidden;
      animation: slideUp 0.5s cubic-bezier(0.4,0,0.2,1);
    }
    .card-top-accent {
      height: 6px;
      background: linear-gradient(90deg, var(--secondary) 0%, var(--secondary-light) 40%, var(--primary) 100%);
    }
    .card-body { padding: 40px 40px 44px; }

    /* ===== STEP INDICATOR ===== */
    .step-bar { display: flex; align-items: center; margin-bottom: 10px; }
    .step-item { display: flex; align-items: center; flex: 1; }
    .step-item:last-child { flex: 0; }
    .step-wrap { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
    .step-dot {
      width: 32px; height: 32px;
      border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      font-size: 13px; font-weight: 700;
      flex-shrink: 0;
      transition: all 0.35s ease;
    }
    .step-dot.active   { background: var(--primary); color: white; box-shadow: 0 0 0 5px rgba(235,118,19,0.18); }
    .step-dot.done     { background: var(--success); color: white; }
    .step-dot.inactive { background: var(--neutral-200); color: var(--neutral-500); }
    .step-line { flex: 1; height: 2px; background: var(--neutral-200); transition: background 0.4s ease; margin: 0 4px; }
    .step-line.done { background: var(--success); }
    .step-labels { display: flex; justify-content: space-between; margin-bottom: 28px; }
    .step-label-item {
      font-size: 10px; font-weight: 600; text-transform: uppercase;
      letter-spacing: 0.5px; color: var(--neutral-400);
      text-align: center; flex: 1; transition: color 0.3s ease;
    }
    .step-label-item:first-child { text-align: left; }
    .step-label-item:last-child  { text-align: right; }
    .step-label-item.active { color: var(--primary); }
    .step-label-item.done   { color: var(--success); }

    /* Progress bar */
    .progress-bar {
      height: 4px; background: var(--neutral-100);
      border-radius: 2px; margin-bottom: 32px; overflow: hidden;
    }
    .progress-fill {
      height: 100%;
      background: linear-gradient(90deg, var(--secondary) 0%, var(--primary) 100%);
      border-radius: 2px;
      transition: width 0.5s cubic-bezier(0.4,0,0.2,1);
    }

    /* ===== ALERT ===== */
    .alert {
      display: none; padding: 13px 16px; border-radius: 10px;
      font-size: 13px; font-weight: 500; margin-bottom: 20px;
      align-items: center; gap: 8px;
    }
    .alert.show    { display: flex; animation: fadeInUp 0.3s ease-out; }
    .alert.shake   { animation: shake 0.4s ease-out; }
    .alert-error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
    .alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
    .alert-warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }

    /* ===== ICON WRAP ===== */
    .icon-wrap {
      width: 72px; height: 72px;
      background: linear-gradient(135deg, rgba(235,118,19,0.12) 0%, rgba(1,61,33,0.08) 100%);
      border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      font-size: 34px;
      margin: 0 auto 24px;
      border: 2px solid rgba(235,118,19,0.15);
      animation: float 3s ease-in-out infinite;
    }
    .icon-wrap.success {
      background: linear-gradient(135deg, rgba(16,185,129,0.13) 0%, rgba(16,185,129,0.06) 100%);
      border-color: rgba(16,185,129,0.22);
      animation: checkBounce 0.6s cubic-bezier(0.4,0,0.2,1) forwards;
    }
    .icon-wrap.purple {
      background: linear-gradient(135deg, rgba(139,92,246,0.12) 0%, rgba(109,40,217,0.07) 100%);
      border-color: rgba(139,92,246,0.2);
      animation: float 3s ease-in-out infinite;
    }

    /* ===== PAGE HEADING ===== */
    .page-heading { text-align: center; margin-bottom: 28px; }
    .page-heading h1 {
      font-size: 22px; font-weight: 700; color: var(--neutral-900);
      letter-spacing: -0.4px; margin-bottom: 8px;
    }
    .page-heading p { font-size: 14px; color: var(--neutral-500); font-weight: 500; line-height: 1.65; }
    .page-heading .highlight { font-weight: 700; color: var(--neutral-800); }

    /* ===== FORM GROUPS ===== */
    .form-group { margin-bottom: 20px; }
    .form-group label {
      display: block; font-size: 13px; font-weight: 600;
      color: var(--neutral-700); margin-bottom: 8px; letter-spacing: 0.2px;
    }
    .form-group label .req { color: var(--primary); margin-left: 2px; }
    .form-group input {
      width: 100%; padding: 12px 14px;
      border: 1.5px solid var(--neutral-300); border-radius: 10px;
      font-size: 14px; font-family: inherit;
      color: var(--neutral-900); background: var(--neutral-50);
      transition: all 0.25s ease;
    }
    .form-group input:focus {
      outline: none; border-color: var(--primary);
      background: white; box-shadow: 0 0 0 4px rgba(235,118,19,0.13);
    }
    .form-group input.error {
      border-color: var(--danger);
      box-shadow: 0 0 0 4px rgba(239,68,68,0.10);
    }
    .form-group input::placeholder { color: var(--neutral-400); }
    .form-hint { font-size: 11px; color: var(--neutral-400); margin-top: 5px; font-weight: 500; }

    /* Input icon */
    .input-icon-wrap { position: relative; }
    .input-icon-wrap input { padding-left: 42px; }
    .input-icon {
      position: absolute; left: 13px; top: 50%;
      transform: translateY(-50%);
      font-size: 16px; color: var(--neutral-400); pointer-events: none;
    }

    /* Password toggle */
    .input-pw-wrap { position: relative; }
    .input-pw-wrap input { padding-right: 46px; }
    .toggle-pw-btn {
      position: absolute; right: 12px; top: 50%;
      transform: translateY(-50%);
      background: none; border: none; cursor: pointer;
      font-size: 16px; color: var(--neutral-400);
      padding: 4px; line-height: 1; transition: color 0.2s ease;
    }
    .toggle-pw-btn:hover { color: var(--primary); }

    /* Password strength */
    .pw-strength { margin-top: 8px; }
    .pw-bars { display: flex; gap: 4px; margin-bottom: 5px; }
    .pw-bar {
      flex: 1; height: 3px; border-radius: 2px;
      background: var(--neutral-200); transition: background 0.3s ease;
    }
    .pw-bar.weak   { background: var(--danger); }
    .pw-bar.medium { background: var(--warning); }
    .pw-bar.strong { background: var(--success); }
    .pw-label { font-size: 11px; font-weight: 600; color: var(--neutral-400); }
    .pw-label.weak   { color: var(--danger); }
    .pw-label.medium { color: var(--warning); }
    .pw-label.strong { color: var(--success); }

    /* OTP input */
    .otp-group {
      display: flex; gap: 10px; justify-content: center; margin-bottom: 8px;
    }
    .otp-input {
      width: 52px; height: 58px;
      border: 1.5px solid var(--neutral-300); border-radius: 12px;
      font-size: 22px; font-weight: 700; text-align: center;
      color: var(--neutral-900); background: var(--neutral-50);
      transition: all 0.25s ease; outline: none;
    }
    .otp-input:focus {
      border-color: var(--primary); background: white;
      box-shadow: 0 0 0 4px rgba(235,118,19,0.13);
      transform: translateY(-2px);
    }
    .otp-input.filled {
      border-color: var(--primary); background: rgba(235,118,19,0.05);
      color: var(--primary);
    }
    .otp-input.error { border-color: var(--danger); animation: shake 0.4s ease-out; }

    /* Countdown */
    .countdown-wrap {
      text-align: center; margin-top: 14px;
      font-size: 13px; color: var(--neutral-400); font-weight: 500;
    }
    .countdown-wrap .resend-link {
      color: var(--primary); font-weight: 700; cursor: pointer;
      text-decoration: none; transition: opacity 0.2s;
    }
    .countdown-wrap .resend-link:hover { opacity: 0.75; }
    .countdown-wrap .resend-link.disabled {
      color: var(--neutral-400); cursor: default; pointer-events: none;
    }

    /* Info card */
    .info-card {
      background: var(--neutral-50); border: 1px solid var(--neutral-100);
      border-radius: 12px; padding: 14px 16px; margin-bottom: 22px;
      display: flex; align-items: flex-start; gap: 12px;
    }
    .info-card-icon { font-size: 17px; flex-shrink: 0; margin-top: 1px; }
    .info-card-text { font-size: 13px; color: var(--neutral-600); line-height: 1.6; }
    .info-card-text strong { color: var(--neutral-800); font-weight: 600; }

    /* ===== BUTTONS ===== */
    .btn-primary {
      width: 100%; padding: 14px;
      background: linear-gradient(135deg, var(--primary) 0%, #d06810 100%);
      color: white; border: none; border-radius: 10px;
      font-size: 15px; font-weight: 700; cursor: pointer;
      letter-spacing: 0.3px; transition: all 0.25s ease;
      display: flex; align-items: center; justify-content: center; gap: 8px;
      position: relative; overflow: hidden; text-decoration: none;
    }
    .btn-primary::before {
      content: ''; position: absolute; top: 50%; left: 50%;
      width: 0; height: 0; border-radius: 50%;
      background: rgba(255,255,255,0.25);
      transform: translate(-50%,-50%);
      transition: width 0.6s ease, height 0.6s ease;
    }
    .btn-primary:hover::before { width: 400px; height: 400px; }
    .btn-primary:hover  { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(235,118,19,0.35); }
    .btn-primary:active { transform: translateY(0); }
    .btn-primary:disabled { opacity: 0.65; cursor: not-allowed; transform: none; box-shadow: none; }

    .btn-outline {
      width: 100%; padding: 12px 20px;
      background: white; color: var(--neutral-600);
      border: 1.5px solid var(--neutral-300); border-radius: 10px;
      font-size: 14px; font-weight: 600; cursor: pointer;
      transition: all 0.25s ease;
      display: flex; align-items: center; justify-content: center; gap: 6px;
      text-decoration: none;
    }
    .btn-outline:hover { border-color: var(--neutral-400); background: var(--neutral-50); transform: translateY(-1px); }

    .btn-group { display: flex; flex-direction: column; gap: 10px; }

    /* Spinner */
    .spinner {
      width: 18px; height: 18px;
      border: 2.5px solid rgba(255,255,255,0.4);
      border-top-color: white; border-radius: 50%;
      animation: spin 0.8s linear infinite;
      display: none; flex-shrink: 0;
    }

    /* ===== STEP PAGES ===== */
    .step-page { display: none; }
    .step-page.active { display: block; animation: fadeInUp 0.4s ease-out; }

    /* ===== SUCCESS FINAL ===== */
    .success-final { text-align: center; }
    .success-final h2 {
      font-size: 22px; font-weight: 700; color: var(--neutral-900);
      letter-spacing: -0.3px; margin-bottom: 10px;
    }
    .success-final p {
      font-size: 14px; color: var(--neutral-500);
      line-height: 1.7; margin-bottom: 28px;
    }

    /* ===== FOOTER LINK ===== */
    .footer-link {
      text-align: center; margin-top: 22px;
      font-size: 13px; color: var(--neutral-500);
    }
    .footer-link a { color: var(--primary); font-weight: 700; text-decoration: none; }
    .footer-link a:hover { text-decoration: underline; }

    /* ===== FOOTER ===== */
    footer {
      background: var(--secondary);
      color: rgba(255,255,255,0.6);
      text-align: center; padding: 20px;
      font-size: 12px; font-weight: 500;
    }

    @media (max-width: 640px) {
      .card-body { padding: 28px 22px 32px; }
      .otp-input { width: 44px; height: 52px; font-size: 18px; }
      .otp-group { gap: 8px; }
      header .header-right { display: none; }

      .logo-text .app-name{
        font-size: 15px;
        width: 280px;
      }
    }