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

  body {
    /* font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; */
   
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    min-height: 100vh;
    /* background: #080c18; */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    /* background: linear-gradient(180deg, rgba(44, 52, 75, 0) -16.91%, #1C2849 100%); */

    background:
    linear-gradient(180deg, rgba(44, 52, 75, 0) -16.91%, #1C2849 100%),
    url('../images/login-bg.png') center/cover no-repeat;
  }

  .orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(90px);
    z-index: 0;
    pointer-events: none;
  }
  .orb-1 { width: 550px; height: 450px; background: rgba(79,70,229,0.15); top: -120px; left: -80px; }
  .orb-2 { width: 420px; height: 420px; background: rgba(16,185,129,0.08); bottom: -60px; right: -60px; }
  .orb-3 { width: 280px; height: 280px; background: rgba(239,68,68,0.07); top: 35%; right: 8%; }

  .grid-overlay {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
  }

  /* Card wrapper */
  .main-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 560px;
    padding: 20px;
  }

  .login-card {
    position: relative;
    overflow: hidden;

    background: rgba(23, 35, 76, 0.56);

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;

    padding: 48px 50px 44px;

    /* Stronger blur */
    backdrop-filter: blur(2px) saturate(80%);
    -webkit-backdrop-filter: blur(2px) saturate(180%);

    /* Softer shadow */
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.30),
        inset 0 1px 1px rgba(255, 255, 255, 0.18);

    box-shadow: 0px 0px 18.6px 0px rgba(0, 0, 0, 0.25);

}

/* Optional glossy light effect */
.login-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,0.16),
            rgba(255,255,255,0.03) 40%,
            transparent 70%
        );
    pointer-events: none;
}

  /* Brand */
  .brand {
    text-align: center;
    margin-bottom: 36px;
  }
  .brand-logo-row {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 6px;
  }
  .brand-icon {
    width: 42px; height: 42px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    border-radius: 11px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }
  .brand-icon svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.8; }
  .brand-name {
    font-size: 23px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 3.5px;
    text-transform: uppercase;
  }
  .brand-name .dot { color: #ef4444; }
  .brand-tagline {
    font-size: 12.5px;
    color: rgba(255,255,255,0.35);
    letter-spacing: 0.3px;
    margin-top: 4px;
  }

  /* Section heading */
  .form-heading {
    font-size: 17px;
    font-weight: 500;
    color: rgba(255,255,255,0.82);
    text-align: center;
    margin-bottom: 26px;
  }

  /* Inputs */
  .input-wrap {
    position: relative;
    margin-bottom: 14px;
  }
  .input-wrap input {
    width: 100%;
    height: 40px;
    background: transparent !important;
    /* background: rgba(255,255,255,0.055); */
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 11px;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    padding: 0 46px 0 16px;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    -webkit-appearance: none;
  }
  .input-wrap input::placeholder { color: rgba(255,255,255,0.28); }
  .input-wrap input:focus {
    border-color: rgba(79,70,229,0.55);
    background: rgba(255,255,255,0.085);
  }
  .input-wrap input:-webkit-autofill,
.input-wrap input:-webkit-autofill:hover,
.input-wrap input:-webkit-autofill:focus,
.input-wrap input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
    -webkit-text-fill-color: #fff !important;
    transition: background-color 9999s ease-in-out 0s;
}

  /* hide number spinners */
  .input-wrap input[type=number]::-webkit-outer-spin-button,
  .input-wrap input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; }
  .input-wrap input[type=number] { -moz-appearance: textfield; }

  .input-icon {
    position: absolute;
    right: 14px; top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.28);
    display: flex; align-items: center;
    cursor: pointer;
    transition: color 0.18s;
    user-select: none;
  }
  .input-icon:hover { color: rgba(255,255,255,0.6); }
  .input-icon svg { width: 17px; height: 17px; }

  /* Meta row */
  .form-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
  }
  .check-label {
    display: flex; align-items: center; gap: 7px;
    font-size: 13px; color: rgba(255,255,255,0.45);
    cursor: pointer; user-select: none;
  }
  .check-label input[type=checkbox] { accent-color: #4f46e5; width: 14px; height: 14px; cursor: pointer; }
  .link-btn {
    background: none; border: none; padding: 0;
    font-family: inherit; font-size: 13px;
    color: #fff;
    cursor: pointer; transition: color 0.18s;
    text-decoration: underline;
  }
  .link-btn:hover { color: #c7d2fe; }

  /* Primary button */
  .btn-primary {
    width: 100%; height: 40px;
    background: rgba(163, 180, 235, 1);

    /* background: linear-gradient(135deg, #4f46e5, #6d28d9); */
    border: none; border-radius: 11px;
    color: #fff; font-family: inherit;
    font-size: 15px; font-weight: 600;
    cursor: pointer; letter-spacing: 0.4px;
    position: relative; overflow: hidden;
    transition: opacity 0.2s, transform 0.15s;
  }
  .btn-primary::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.08), transparent);
  }
  .btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }
  .btn-primary:active { transform: translateY(0); opacity: 1; }
  .btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

  /* Spinner inside button */
  .btn-primary .spinner {
    display: inline-block;
    width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    vertical-align: middle;
    margin-left: 8px;
  }
  @keyframes spin { to { transform: rotate(360deg); } }

  /* Radio options */
  .radio-group { display: flex; gap: 12px; margin-bottom: 20px; }
  .radio-opt {
    flex: 1; border: 1px solid rgba(255,255,255,0.1);
    border-radius: 11px; padding: 12px 14px;
    cursor: pointer; display: flex; align-items: center; gap: 8px;
    font-size: 13px; color: rgba(255,255,255,0.48);
    transition: all 0.18s; user-select: none;
  }
  .radio-opt input { accent-color: #4f46e5; cursor: pointer; }
  .radio-opt.active {
    border-color: rgba(79,70,229,0.55);
    background: rgba(79,70,229,0.1);
    color: #c7d2fe;
  }
  .radio-opt svg { width: 14px; height: 14px; flex-shrink: 0; }

  /* OTP info text */
  .sub-text {
    font-size: 13px; color: rgba(255,255,255,0.38);
    text-align: center; margin-bottom: 22px; line-height: 1.65;
  }

  /* OTP input large */
  .otp-input input {
    text-align: center; letter-spacing: 6px; font-size: 22px; font-weight: 500;
  }

  /* Timer */
  .timer-row {
    text-align: center; margin-top: 14px;
    font-size: 13px; color: rgba(255,255,255,0.35);
  }
  .resend-btn {
    background: none; border: none; padding: 0;
    font-family: inherit; font-size: 13px;
    color: #a5b4fc; cursor: pointer; text-decoration: underline;
    display: none;
  }

  /* Password hint */
  .pass-hint {
    font-size: 11.5px; color: rgba(255,255,255,0.28);
    margin-bottom: 14px; line-height: 1.6;
  }

  /* Back link */
  .back-wrap { text-align: center; margin-top: 14px; }
  .back-link {
    background: none; border: none; padding: 0;
    font-family: inherit; font-size: 13px;
    color: rgba(255,255,255,0.35); cursor: pointer;
    transition: color 0.18s;
  }
  .back-link:hover { color: rgba(255,255,255,0.65); }

  /* Toast */
  .toast {
    position: fixed; top: 22px; left: 50%;
    transform: translateX(-50%) translateY(-90px);
    background: rgba(14, 24, 52, 0.96);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 11px; padding: 11px 20px;
    font-size: 13.5px; color: #fff; z-index: 999;
    transition: transform 0.28s ease;
    white-space: nowrap; backdrop-filter: blur(16px);
    display: flex; align-items: center; gap: 9px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  }
  .toast.show { transform: translateX(-50%) translateY(0); }
  .toast-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
  .toast.success .toast-dot { background: #10b981; }
  .toast.error .toast-dot { background: #ef4444; }
  .toast.info .toast-dot { background: #6366f1; }

  /* Sections */
  .section { display: none; }
  .section.active { display: block; }
  #sec-login { display: block; }