/* ===== WRAPPER ===== */
    .auth-wrapper {
      width: 100%;
      max-width: 480px;
      position: relative;
      z-index: 1;
    }

    /* ===== CARD ===== */
    .auth-card {
      background: #fff;
      border-radius: 24px;
      box-shadow: var(--shadow);
      padding: 36px 40px 32px;
      border: 1px solid rgba(249,115,22,.1);
      position: relative;
      overflow: hidden;
      animation: cardIn .4s ease;
    }
    @keyframes cardIn {
      from { opacity: 0; transform: translateY(24px) scale(.97); }
      to   { opacity: 1; transform: translateY(0) scale(1); }
    }
    .auth-card::before {
      content: '';
      position: absolute;
      top: 0; left: 0; right: 0;
      height: 4px;
      background: linear-gradient(90deg, var(--orange), #fb923c, var(--orange));
    }

    /* Panel switch animation */
    .panel { display: none; }
    .panel.active { display: block; animation: panelIn .35s ease; }
    @keyframes panelIn {
      from { opacity: 0; transform: translateX(20px); }
      to   { opacity: 1; transform: translateX(0); }
    }

    /* ===== LOGO ===== */
    .auth-logo {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      margin-bottom: 20px;
    }
    .logo-brand { display: flex; flex-direction: column; gap: 2px; }
    .logo-brand span {
      font-size: 1.8rem;
      font-weight: 900;
      color: var(--orange);
      line-height: 1;
      letter-spacing: -0.5px;
    }
    .logo-brand small {
      font-size: .78rem;
      font-weight: 600;
      color: var(--gray);
      line-height: 1;
    }
    .logo-left { display: flex; align-items: center; gap: 10px; }
    .back-btn {
      width: 34px; height: 34px;
      border: 1.5px solid var(--border);
      border-radius: 50%;
      background: #fff;
      display: flex; align-items: center; justify-content: center;
      color: var(--mid); font-size: .95rem;
      cursor: pointer; transition: var(--t);
    }
    .back-btn:hover { border-color: var(--orange); color: var(--orange); background: var(--orange-lt); }

    .lang-btn {
      display: flex; align-items: center; gap: 6px;
      padding: 7px 14px;
      border: 1.5px solid var(--border);
      border-radius: 20px;
      background: #fff;
      font-size: .82rem; font-weight: 700;
      color: var(--mid);
      cursor: pointer; transition: var(--t);
      white-space: nowrap;
    }
    .lang-btn:hover { border-color: var(--orange); color: var(--orange); }
    .lang-btn i { font-size: .95rem; }

    /* ===== HERO IMAGE ===== */
    .hero-img-wrap {
      position: absolute;
      top: 16px; right: 36px;
      width: 160px; height: 130px;
    }
    .hero-img-wrap img {
      width: 100%; height: 100%;
      object-fit: contain;
      filter: drop-shadow(0 8px 20px rgba(0,0,0,.12));
    }
    /* Register hero is taller */
    .hero-img-wrap.tall {
      width: 140px; height: 160px;
      top: 12px;
    }

    /* Floating icons on register */
    .float-icon {
      position: absolute;
      width: 36px; height: 36px;
      border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      font-size: 1.1rem;
      animation: floatAnim 3s ease-in-out infinite;
    }
    @keyframes floatAnim {
      0%,100% { transform: translateY(0); }
      50%      { transform: translateY(-8px); }
    }
    .float-bag  { background: var(--orange-lt); color: var(--orange); top: 30px; right: 44px; animation-delay: 0s; }
    .float-star { background: #fef9c3; color: #ca8a04; top: 65px; right: 14px; animation-delay: .8s; }
    .float-heart{ background: #ffe4e6; color: #e11d48; top: 115px; right: 148px; width: 30px; height: 30px; font-size: .9rem; animation-delay: 1.5s; }

    /* ===== HEADING ===== */
    .auth-heading { margin-bottom: 24px; padding-right: 150px; }
    .auth-heading h2 { font-size: 1.6rem; font-weight: 900; color: var(--dark); margin-bottom: 4px; }
    .auth-heading p  { font-size: .9rem; color: var(--gray); line-height: 1.5; }

    /* ===== FORM ELEMENTS ===== */
    .form-group { margin-bottom: 18px; }
    .form-group label {
      display: block;
      font-size: .87rem;
      font-weight: 700;
      color: var(--mid);
      margin-bottom: 8px;
    }
    .label-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 8px;
    }
    .label-row label { margin-bottom: 0; }
    .forgot-link {
      font-size: .83rem;
      font-weight: 700;
      color: var(--orange);
      cursor: pointer;
      transition: var(--t);
    }
    .forgot-link:hover { text-decoration: underline; }

    /* Input wrapper */
    .input-wrap {
      position: relative;
      display: flex;
      align-items: center;
      border: 2px solid var(--border);
      border-radius: 12px;
      background: #fff;
      transition: var(--t);
      overflow: hidden;
    }
    .input-wrap:focus-within {
      border-color: var(--orange);
      box-shadow: 0 0 0 3px rgba(249,115,22,.12);
    }
    .input-wrap.error { border-color: var(--red); box-shadow: 0 0 0 3px rgba(220,38,38,.1); }
    .input-wrap.success { border-color: var(--green); box-shadow: 0 0 0 3px rgba(22,163,74,.1); }

    .input-icon {
      padding: 0 12px 0 16px;
      color: #9ca3af;
      font-size: 1.1rem;
      flex-shrink: 0;
      display: flex;
      align-items: center;
    }
    .input-prefix {
      padding: 14px 10px 14px 16px;
      font-weight: 800;
      color: var(--orange);
      font-size: .9rem;
      border-right: 1.5px solid var(--border);
      white-space: nowrap;
    }
    .input-wrap input {
      flex: 1;
      border: none;
      outline: none;
      padding: 14px 14px;
      font-size: .9rem;
      font-family: 'Nunito', sans-serif;
      color: var(--dark);
      background: transparent;
      min-width: 0;
    }
    .input-wrap input::placeholder { color: #c4c4c4; }
    .toggle-pwd {
      padding: 0 14px;
      background: none;
      border: none;
      color: #9ca3af;
      font-size: 1.05rem;
      cursor: pointer;
      transition: var(--t);
      display: flex; align-items: center;
    }
    .toggle-pwd:hover { color: var(--orange); }

    /* Hint text */
    .input-hint {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: .78rem;
      color: var(--green);
      font-weight: 600;
      margin-top: 6px;
    }
    .input-hint i { font-size: .85rem; }
    .input-error-msg {
      font-size: .78rem;
      color: var(--red);
      font-weight: 600;
      margin-top: 5px;
      display: none;
    }
    .input-wrap.error + .input-error-msg { display: block; }

    /* ===== CHECKBOX ROW ===== */
    .check-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 22px;
    }
    .custom-check {
      display: flex;
      align-items: center;
      gap: 9px;
      cursor: pointer;
      font-size: .87rem;
      font-weight: 600;
      color: var(--mid);
      user-select: none;
    }
    .custom-check input[type="checkbox"] { display: none; }
    .check-box {
      width: 20px; height: 20px;
      border: 2px solid var(--border);
      border-radius: 6px;
      display: flex; align-items: center; justify-content: center;
      transition: var(--t);
      flex-shrink: 0;
      background: #fff;
    }
    .custom-check input:checked ~ .check-box {
      background: var(--orange);
      border-color: var(--orange);
    }
    .custom-check input:checked ~ .check-box::after {
      content: '✓';
      color: #fff;
      font-size: .75rem;
      font-weight: 900;
    }
    .terms-text {
      font-size: .85rem;
      font-weight: 600;
      color: var(--mid);
      line-height: 1.5;
      margin-bottom: 20px;
    }
    .terms-text a { color: var(--orange); font-weight: 700; }
    .terms-text a:hover { text-decoration: underline; }

    /* ===== OTP LOGIN LINK ===== */
    .otp-link {
      font-size: .85rem;
      font-weight: 700;
      color: var(--orange);
      cursor: pointer;
      transition: var(--t);
      white-space: nowrap;
    }
    .otp-link:hover { text-decoration: underline; }

    /* ===== PRIMARY BUTTON ===== */
    .btn-primary-auth {
      width: 100%;
      padding: 15px;
      background: linear-gradient(135deg, var(--orange), #fb923c);
      color: #fff;
      border: none;
      border-radius: 12px;
      font-size: 1rem;
      font-weight: 800;
      font-family: 'Nunito', sans-serif;
      cursor: pointer;
      transition: var(--t);
      box-shadow: 0 4px 20px rgba(249,115,22,.35);
      margin-bottom: 20px;
      position: relative;
      overflow: hidden;
    }
    .btn-primary-auth::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(135deg, transparent 50%, rgba(255,255,255,.12) 100%);
    }
    .btn-primary-auth:hover {
      background: linear-gradient(135deg, var(--orange-dk), var(--orange));
      box-shadow: 0 6px 28px rgba(249,115,22,.45);
      transform: translateY(-1px);
    }
    .btn-primary-auth:active { transform: translateY(0); }

    /* Loading state */
    .btn-primary-auth.loading { pointer-events: none; opacity: .85; }
    .btn-primary-auth .btn-text { display: flex; align-items: center; justify-content: center; gap: 8px; position: relative; z-index: 1; }
    .spinner {
      width: 18px; height: 18px;
      border: 2.5px solid rgba(255,255,255,.4);
      border-top-color: #fff;
      border-radius: 50%;
      animation: spin .7s linear infinite;
      display: none;
    }
    .btn-primary-auth.loading .spinner { display: block; }
    @keyframes spin { to { transform: rotate(360deg); } }

    /* ===== DIVIDER ===== */
    .divider {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 16px;
    }
    .divider::before, .divider::after {
      content: '';
      flex: 1;
      height: 1px;
      background: var(--border);
    }
    .divider span {
      font-size: .82rem;
      color: #9ca3af;
      font-weight: 600;
      white-space: nowrap;
    }

    /* ===== SOCIAL BUTTONS ===== */
    .social-btn {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
      padding: 13px;
      background: #fff;
      border: 2px solid var(--border);
      border-radius: 12px;
      font-size: .9rem;
      font-weight: 700;
      font-family: 'Nunito', sans-serif;
      color: var(--dark);
      cursor: pointer;
      transition: var(--t);
      margin-bottom: 12px;
    }
    .social-btn:hover {
      border-color: var(--border);
      background: var(--light-gray);
      transform: translateY(-1px);
      box-shadow: 0 4px 12px rgba(0,0,0,.07);
    }
    .social-btn:last-child { margin-bottom: 0; }
    .google-icon {
      width: 22px; height: 22px;
      background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23FFC107' d='M43.611 20.083H42V20H24v8h11.303c-1.649 4.657-6.08 8-11.303 8-6.627 0-12-5.373-12-12s5.373-12 12-12c3.059 0 5.842 1.154 7.961 3.039l5.657-5.657C34.046 6.053 29.268 4 24 4 12.955 4 4 12.955 4 24s8.955 20 20 20 20-8.955 20-20c0-1.341-.138-2.65-.389-3.917z'/%3E%3Cpath fill='%23FF3D00' d='m6.306 14.691 6.571 4.819C14.655 15.108 18.961 12 24 12c3.059 0 5.842 1.154 7.961 3.039l5.657-5.657C34.046 6.053 29.268 4 24 4 16.318 4 9.656 8.337 6.306 14.691z'/%3E%3Cpath fill='%234CAF50' d='M24 44c5.166 0 9.86-1.977 13.409-5.192l-6.19-5.238A11.91 11.91 0 0 1 24 36c-5.202 0-9.619-3.317-11.283-7.946l-6.522 5.025C9.505 39.556 16.227 44 24 44z'/%3E%3Cpath fill='%231976D2' d='M43.611 20.083H42V20H24v8h11.303a12.04 12.04 0 0 1-4.087 5.571l.003-.002 6.19 5.238C36.971 39.205 44 34 44 24c0-1.341-.138-2.65-.389-3.917z'/%3E%3C/svg%3E") center/contain no-repeat;
      flex-shrink: 0;
    }
    .apple-icon { font-size: 1.2rem; color: var(--dark); }

    /* ===== SWITCH LINK ===== */
    .switch-link {
      text-align: center;
      margin-top: 20px;
      font-size: .87rem;
      color: var(--gray);
      font-weight: 600;
    }
    .switch-link a {
      color: var(--orange);
      font-weight: 800;
      cursor: pointer;
      transition: var(--t);
      text-decoration: none;
    }
    .switch-link a:hover { text-decoration: underline; }

    /* ===== TRUST BADGES ===== */
    .trust-badges {
      display: flex;
      justify-content: center;
      gap: 24px;
      margin-top: 24px;
      padding-top: 20px;
      border-top: 1px solid var(--border);
      flex-wrap: wrap;
    }
    .trust-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 4px;
      text-align: center;
    }
    .trust-icon-wrap {
      width: 36px; height: 36px;
      border-radius: 50%;
      border: 2px solid var(--orange-bd);
      background: var(--orange-lt);
      display: flex; align-items: center; justify-content: center;
      color: var(--orange);
      font-size: 1rem;
    }
    .trust-item strong {
      font-size: .78rem;
      font-weight: 800;
      color: var(--dark);
      display: block;
    }
    .trust-item small {
      font-size: .72rem;
      color: var(--gray);
      display: block;
    }

    /* ===== OTP PANEL ===== */
    .otp-grid {
      display: flex;
      gap: 12px;
      justify-content: center;
      margin-bottom: 8px;
    }
    .otp-input {
      width: 52px; height: 56px;
      border: 2px solid var(--border);
      border-radius: 12px;
      text-align: center;
      font-size: 1.4rem;
      font-weight: 800;
      font-family: 'Nunito', sans-serif;
      color: var(--dark);
      outline: none;
      transition: var(--t);
    }
    .otp-input:focus {
      border-color: var(--orange);
      box-shadow: 0 0 0 3px rgba(249,115,22,.12);
    }
    .otp-resend {
      text-align: center;
      font-size: .84rem;
      color: var(--gray);
      font-weight: 600;
      margin-bottom: 22px;
    }
    .otp-resend span { color: var(--orange); font-weight: 800; cursor: pointer; }
    .otp-resend span:hover { text-decoration: underline; }
    .otp-timer { color: var(--gray); font-weight: 700; }

    /* ===== FORGOT PASSWORD PANEL ===== */
    .fp-info {
      background: var(--orange-lt);
      border: 1px solid var(--orange-bd);
      border-radius: 10px;
      padding: 12px 16px;
      font-size: .84rem;
      color: var(--mid);
      font-weight: 600;
      margin-bottom: 20px;
      display: flex;
      align-items: flex-start;
      gap: 8px;
    }
    .fp-info i { color: var(--orange); margin-top: 2px; flex-shrink: 0; }

    /* ===== TOAST ===== */
    .toast-wrap {
      position: fixed;
      bottom: 24px; right: 24px;
      z-index: 9999;
      display: flex;
      flex-direction: column;
      gap: 8px;
    }
    .toast-msg {
      background: #1f2937;
      color: #fff;
      padding: 12px 18px;
      border-radius: 10px;
      font-size: .85rem;
      font-weight: 700;
      box-shadow: 0 8px 24px rgba(0,0,0,.22);
      display: flex;
      align-items: center;
      gap: 8px;
      max-width: 300px;
      animation: toIn .25s ease;
    }
    .toast-msg.success { border-left: 4px solid #16a34a; }
    .toast-msg.info    { border-left: 4px solid var(--orange); }
    .toast-msg.error   { border-left: 4px solid #dc2626; }
    @keyframes toIn { from { opacity:0; transform:translateX(30px); } to { opacity:1; transform:translateX(0); } }

    /* ===== PASSWORD STRENGTH ===== */
    .pwd-strength { margin-top: 8px; }
    .pwd-strength-bar {
      display: flex; gap: 4px; margin-bottom: 5px;
    }
    .pwd-seg {
      flex: 1; height: 4px; border-radius: 4px;
      background: var(--border); transition: var(--t);
    }
    .pwd-seg.weak   { background: var(--red); }
    .pwd-seg.medium { background: #f59e0b; }
    .pwd-seg.strong { background: var(--green); }
    .pwd-strength-label {
      font-size: .75rem; font-weight: 700;
      color: var(--gray);
    }
    .pwd-strength-label.weak   { color: var(--red); }
    .pwd-strength-label.medium { color: #f59e0b; }
    .pwd-strength-label.strong { color: var(--green); }

    /* ===== RESPONSIVE ===== */
    @media (max-width: 520px) {
      .auth-card { padding: 28px 22px 24px; border-radius: 20px; }
      .hero-img-wrap { width: 120px; height: 100px; top: 20px; right: 20px; }
      .hero-img-wrap.tall { width: 110px; height: 130px; }
      .auth-heading { padding-right: 120px; }
      .auth-heading h2 { font-size: 1.35rem; }
      .trust-badges { gap: 16px; }
      .otp-input { width: 44px; height: 50px; font-size: 1.2rem; }
    }