: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;
    }

    /* ── Animations ── */
    @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 scaleIn      { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: scale(1); } }
    @keyframes float        { 0%,100% { transform: translateY(0); } 50% { transform: translateY(30px); } }
    @keyframes spin         { to { transform: rotate(360deg); } }
    @keyframes pulse        { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }
    @keyframes popIn        { 0% { transform: scale(0.5); opacity: 0; } 70% { transform: scale(1.1); } 100% { transform: scale(1); opacity: 1; } }

    /* ── Wrapper (full-page gradient) ── */
    .login-container {
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 50%, var(--primary) 100%);
      position: relative;
      overflow: hidden;
      animation: fadeIn 0.8s ease-out;
      padding: 40px 20px;
    }

    .login-container::before {
      content: '';
      position: absolute;
      width: 600px; height: 600px;
      background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
      border-radius: 50%;
      top: -200px; right: -200px;
      animation: float 8s ease-in-out infinite;
    }

    .login-container::after {
      content: '';
      position: absolute;
      width: 400px; height: 400px;
      background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
      border-radius: 50%;
      bottom: -100px; left: -100px;
      animation: float 10s ease-in-out infinite reverse;
    }

    /* ── Card ── */
    .login-box {
      background: white;
      padding: 48px 44px;
      border-radius: var(--radius);
      box-shadow: 0 25px 50px rgba(0,0,0,0.2);
      width: 100%;
      max-width: 460px;
      position: relative;
      z-index: 1;
      animation: slideUp 0.6s cubic-bezier(0.4,0,0.2,1);
    }

    /* ── Step Indicator ── */
    .step-indicator {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0;
      margin-bottom: 32px;
    }

    .step-dot {
      width: 36px; height: 36px;
      border-radius: 50%;
      background: var(--neutral-200);
      color: var(--neutral-500);
      display: flex; align-items: center; justify-content: center;
      font-size: 13px; font-weight: 700;
      transition: all 0.4s ease;
      position: relative; z-index: 1;
      flex-shrink: 0;
    }

    .step-dot.active {
      background: var(--primary);
      color: white;
      box-shadow: 0 4px 14px rgba(235,118,19,0.4);
    }

    .step-dot.done {
      background: var(--success);
      color: white;
    }

    .step-line {
      flex: 1;
      height: 3px;
      background: var(--neutral-200);
      max-width: 72px;
      transition: background 0.4s ease;
    }

    .step-line.done { background: var(--success); }

    /* ── Icon circle ── */
    .login-logo {
      width: 88px; height: 88px;
      margin: 0 auto 20px;
      background: linear-gradient(135deg, rgba(235,118,19,0.1) 0%, rgba(1,61,33,0.1) 100%);
      border-radius: 16px;
      display: flex; align-items: center; justify-content: center;
      font-size: 36px;
      border: 2px solid rgba(235,118,19,0.2);
      animation: scaleIn 0.5s cubic-bezier(0.4,0,0.2,1) 0.1s backwards;
    }

    /* ── Headers ── */
    .login-header { text-align: center; margin-bottom: 28px; }

    .login-header h1 {
      font-size: 26px; font-weight: 700;
      color: var(--neutral-900);
      margin-bottom: 8px;
      letter-spacing: -0.4px;
      animation: fadeIn 0.6s ease-out 0.2s backwards;
    }

    .login-header p {
      color: var(--neutral-500);
      font-size: 14px; font-weight: 500;
      animation: fadeIn 0.6s ease-out 0.3s backwards;
      line-height: 1.6;
    }

    .login-header p span { color: var(--primary); font-weight: 700; }

    /* ── Alerts ── */
    .alert {
      padding: 13px 16px;
      border-radius: 10px;
      margin-bottom: 18px;
      font-size: 13px; font-weight: 500;
      animation: slideUp 0.4s cubic-bezier(0.4,0,0.2,1);
      display: none;
    }
    .alert.show { display: block; }
    .alert-error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
    .alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }

    /* ── Form ── */
    .form-group { margin-bottom: 20px; animation: fadeIn 0.6s ease-out 0.4s backwards; }

    .form-group label {
      display: block;
      margin-bottom: 8px;
      font-weight: 600; color: var(--neutral-800);
      font-size: 13px; letter-spacing: 0.2px;
    }

    .form-group input {
      width: 100%;
      padding: 13px 16px;
      border: 1.5px solid var(--neutral-300);
      border-radius: 10px;
      font-size: 15px;
      transition: all 0.3s ease;
      background: var(--neutral-50);
      color: var(--neutral-900);
      font-family: inherit;
    }

    .form-group input:focus {
      outline: none;
      border-color: var(--primary);
      background: white;
      box-shadow: 0 0 0 4px rgba(235,118,19,0.12);
      transform: translateY(-1px);
    }

    /* password toggle wrapper */
    .pass-wrap { position: relative; }
    .pass-wrap input { padding-right: 48px; }
    .eye-toggle {
      position: absolute; right: 14px; top: 50%;
      transform: translateY(-50%);
      background: none; border: none;
      cursor: pointer; color: var(--neutral-400);
      font-size: 18px; line-height: 1;
      transition: color 0.2s; padding: 4px;
    }
    .eye-toggle:hover { color: var(--primary); }

    /* ── OTP Inputs ── */
    .otp-group {
      display: flex; gap: 10px;
      justify-content: center;
      margin-bottom: 6px;
    }

    .otp-input {
      width: 52px; height: 58px;
      text-align: center;
      font-size: 22px; font-weight: 700;
      border: 1.5px solid var(--neutral-300);
      border-radius: 10px;
      background: var(--neutral-50);
      color: var(--primary);
      transition: all 0.3s ease;
      font-family: 'Courier New', monospace;
      outline: none;
    }

    .otp-input:focus {
      border-color: var(--primary);
      background: white;
      box-shadow: 0 0 0 4px rgba(235,118,19,0.12);
      transform: translateY(-2px);
    }

    .otp-input.filled {
      border-color: var(--primary);
      background: rgba(235,118,19,0.04);
    }

    /* ── Resend / Timer ── */
    .resend-row {
      text-align: center;
      font-size: 13px; color: var(--neutral-500);
      margin: 14px 0 22px;
    }

    .resend-btn {
      background: none; border: none;
      cursor: pointer; color: var(--primary);
      font-weight: 700; font-size: 13px;
      font-family: inherit; transition: opacity 0.2s;
    }
    .resend-btn:disabled { color: var(--neutral-400); cursor: default; }
    .resend-btn:not(:disabled):hover { text-decoration: underline; }
    .timer { font-weight: 700; color: var(--primary); }

    /* ── Buttons ── */
    .btn {
      width: 100%; padding: 14px;
      border: none; border-radius: 10px;
      font-size: 15px; font-weight: 700;
      cursor: pointer;
      transition: all 0.3s ease;
      display: inline-flex; align-items: center; justify-content: center; gap: 8px;
      letter-spacing: 0.3px;
      position: relative; overflow: hidden;
      font-family: inherit;
    }

    .btn::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.5s ease, height 0.5s ease;
    }
    .btn:hover::before { width: 320px; height: 320px; }

    .btn-primary {
      background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
      color: white;
      box-shadow: 0 4px 15px rgba(235,118,19,0.3);
      animation: slideUp 0.6s cubic-bezier(0.4,0,0.2,1) 0.5s backwards;
    }
    .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(235,118,19,0.4); }
    .btn-primary:active { transform: translateY(0); }
    .btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

    .btn-outline {
      background: transparent;
      color: var(--neutral-600);
      border: 1.5px solid var(--neutral-300);
      margin-top: 10px;
    }
    .btn-outline:hover { border-color: var(--secondary); color: var(--secondary); background: var(--neutral-50); }

    /* ── Strength bar ── */
    .pass-strength { margin-top: 8px; }
    .strength-bar { height: 4px; border-radius: 4px; background: var(--neutral-200); overflow: hidden; margin-bottom: 5px; }
    .strength-fill { height: 100%; border-radius: 4px; width: 0; transition: all 0.4s ease; }
    .strength-text { font-size: 12px; font-weight: 600; color: var(--neutral-400); }

    .requirement {
      display: flex; flex-wrap: wrap; gap: 5px 14px;
      margin-top: 8px; font-size: 12px; color: var(--neutral-400);
    }
    .req { display: flex; align-items: center; gap: 5px; transition: color 0.25s; }
    .req.met { color: var(--success); }
    .req-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }

    .match-msg { font-size: 12px; margin-top: 7px; display: none; font-weight: 600; }

    /* ── Back login note ── */
    .note {
      text-align: center;
      margin-top: 20px;
      font-size: 13px; color: var(--neutral-500);
      animation: slideUp 0.6s cubic-bezier(0.4,0,0.2,1) 0.6s backwards;
    }
    .note a { color: var(--primary); font-weight: 700; text-decoration: none; cursor: pointer; }
    .note a:hover { text-decoration: underline; }

    /* ── Spinner ── */
    .spinner-sm {
      width: 18px; height: 18px;
      border: 3px solid rgba(255,255,255,0.35);
      border-top-color: white;
      border-radius: 50%;
      animation: spin 0.8s linear infinite;
      display: inline-block;
    }

    /* ── Success screen ── */
    .success-wrap { text-align: center; padding: 12px 0; }
    .check-circle {
      width: 88px; height: 88px;
      border-radius: 50%;
      background: rgba(16,185,129,0.1);
      border: 3px solid var(--success);
      margin: 0 auto 22px;
      display: flex; align-items: center; justify-content: center;
      font-size: 40px;
      animation: popIn 0.6s cubic-bezier(0.4,0,0.2,1);
    }

    /* ── Steps visibility ── */
    .step { display: none; }
    .step.active { display: block; animation: fadeInUp 0.4s ease-out; }

    /* ── Responsive ── */
    @media (max-width: 480px) {
      .login-box { padding: 32px 20px; }
      .login-header h1 { font-size: 22px; }
      .otp-input { width: 42px; height: 50px; font-size: 18px; }
      .otp-group { gap: 7px; }
    }