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

    :root {
      --accent: #3b82f6;
      --accent2: #8b5cf6;
      --accent3: #06b6d4;
      --danger: #ef4444;
    }

    body {
      font-family: 'DM Sans', sans-serif;
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      background: #060c1a;
      position: relative;
    }

    /* ── Animated background ── */
    .bg-scene {
      position: fixed;
      inset: 0;
      z-index: 0;
      overflow: hidden;
    }

    .bg-gradient {
      position: absolute;
      inset: 0;
      background:
        radial-gradient(ellipse 80% 60% at 20% 30%, rgba(59, 130, 246, 0.18) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 70%, rgba(139, 92, 246, 0.14) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 60% 10%, rgba(6, 182, 212, 0.10) 0%, transparent 50%),
        linear-gradient(160deg, #060c1a 0%, #0d1629 50%, #080e1e 100%);
    }

    /* Floating orbs */
    .orb {
      position: absolute;
      border-radius: 50%;
      filter: blur(60px);
      opacity: 0.5;
      animation: float-orb 12s ease-in-out infinite;
    }

    .orb1 {
      width: 400px;
      height: 400px;
      background: radial-gradient(circle, rgba(59, 130, 246, 0.4), transparent 70%);
      top: -100px;
      left: -100px;
      animation-duration: 14s;
    }

    .orb2 {
      width: 350px;
      height: 350px;
      background: radial-gradient(circle, rgba(139, 92, 246, 0.35), transparent 70%);
      bottom: -80px;
      right: -80px;
      animation-duration: 11s;
      animation-delay: -4s;
    }

    .orb3 {
      width: 250px;
      height: 250px;
      background: radial-gradient(circle, rgba(6, 182, 212, 0.3), transparent 70%);
      top: 50%;
      right: 15%;
      animation-duration: 16s;
      animation-delay: -8s;
    }

    @keyframes float-orb {

      0%,
      100% {
        transform: translate(0, 0) scale(1);
      }

      33% {
        transform: translate(30px, -40px) scale(1.05);
      }

      66% {
        transform: translate(-20px, 30px) scale(0.95);
      }
    }

    /* Grid */
    .grid-lines {
      position: absolute;
      inset: 0;
      background-image:
        linear-gradient(rgba(59, 130, 246, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.05) 1px, transparent 1px);
      background-size: 60px 60px;
      mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
    }

    /* Floating particles */
    .particles {
      position: absolute;
      inset: 0;
      overflow: hidden;
    }

    .particle {
      position: absolute;
      width: 2px;
      height: 2px;
      background: rgba(59, 130, 246, 0.6);
      border-radius: 50%;
      animation: rise linear infinite;
    }

    .particle:nth-child(2) {
      left: 10%;
      width: 3px;
      height: 3px;
      animation-duration: 8s;
      animation-delay: -2s;
      background: rgba(139, 92, 246, 0.6);
    }

    .particle:nth-child(3) {
      left: 20%;
      animation-duration: 11s;
      animation-delay: -5s;
    }

    .particle:nth-child(4) {
      left: 35%;
      width: 3px;
      height: 3px;
      animation-duration: 9s;
      animation-delay: -1s;
      background: rgba(6, 182, 212, 0.6);
    }

    .particle:nth-child(5) {
      left: 50%;
      animation-duration: 13s;
      animation-delay: -7s;
    }

    .particle:nth-child(6) {
      left: 65%;
      width: 2px;
      height: 2px;
      animation-duration: 10s;
      animation-delay: -3s;
      background: rgba(139, 92, 246, 0.5);
    }

    .particle:nth-child(7) {
      left: 75%;
      animation-duration: 7s;
      animation-delay: -9s;
    }

    .particle:nth-child(8) {
      left: 85%;
      width: 3px;
      height: 3px;
      animation-duration: 12s;
      animation-delay: -6s;
      background: rgba(6, 182, 212, 0.5);
    }

    .particle:nth-child(9) {
      left: 92%;
      animation-duration: 9s;
      animation-delay: -4s;
    }

    .particle:nth-child(10) {
      left: 5%;
      width: 2px;
      height: 2px;
      animation-duration: 14s;
      animation-delay: -11s;
    }

    @keyframes rise {
      0% {
        transform: translateY(110vh) scale(0);
        opacity: 0;
      }

      10% {
        opacity: 1;
      }

      90% {
        opacity: 0.5;
      }

      100% {
        transform: translateY(-10vh) scale(1);
        opacity: 0;
      }
    }

    /* ── Card ── */
    .login-card {
      width: 100%;
      max-width: 440px;
      margin: 1.5rem;
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid rgba(255, 255, 255, 0.10);
      border-radius: 28px;
      padding: 48px 44px;
      position: relative;
      z-index: 1;
      backdrop-filter: blur(24px);
      -webkit-backdrop-filter: blur(24px);
      box-shadow:
        0 0 0 1px rgba(59, 130, 246, 0.08),
        0 40px 80px rgba(0, 0, 0, 0.5),
        0 0 100px rgba(59, 130, 246, 0.06) inset;
      animation: card-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    }

    @keyframes card-in {
      from {
        opacity: 0;
        transform: translateY(32px) scale(0.96);
      }

      to {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
    }

    /* Top accent line with animation */
    /* .card-top-bar {
      position: absolute;
      top: 0;
      left: 10%;
      right: 10%;
      height: 2px;
      background: linear-gradient(90deg, transparent, var(--accent), var(--accent2), var(--accent3), transparent);
      border-radius: 0 0 4px 4px;
      animation: shimmer-bar 3s linear infinite;
      background-size: 200% 100%;
    }

    @keyframes shimmer-bar {
      0% {
        background-position: 200% 0;
      }

      100% {
        background-position: -200% 0;
      }
    } */

    /* Corner glows */
    .card-corner {
      position: absolute;
      width: 80px;
      height: 80px;
      border-radius: 50%;
      opacity: 0.15;
      filter: blur(20px);
      pointer-events: none;
    }

    .corner-tl {
      top: -20px;
      left: -20px;
      background: var(--accent);
    }

    .corner-br {
      bottom: -20px;
      right: -20px;
      background: var(--accent2);
    }

    /* ── Logo area ── */
    .login-logo {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 14px;
      margin-bottom: 40px;
      animation: fade-up 0.6s 0.15s both;
    }

    .logo-ring {
      position: relative;
      width: 80px;
      height: 80px;
    }

    .logo-ring-svg {
      position: absolute;
      inset: 0;
      /* animation: spin-ring 8s linear infinite; */
    }

    @keyframes spin-ring {
      to {
        transform: rotate(360deg);
      }
    }

    .logo-inner {
      position: absolute;
      inset: 10px;
      background: linear-gradient(135deg, #1e3a5f, #2d1b6e);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 0 30px rgba(59, 130, 246, 0.4), 0 0 60px rgba(139, 92, 246, 0.2);
    }

    .logo-inner img {
      width: 34px;
      height: 34px;
      object-fit: contain;
      filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.6));
    }

    .login-title {
      font-family: 'Sora', sans-serif;
      font-size: 26px;
      font-weight: 700;
      color: #fff;
      letter-spacing: -0.5px;
      text-align: center;
    }

    .login-subtitle {
      font-size: 13.5px;
      color: rgba(255, 255, 255, 0.45);
      text-align: center;
      letter-spacing: 0.2px;
    }

    /* ── Form ── */
    .form-group {
      margin-bottom: 18px;
      animation: fade-up 0.6s both;
    }

    .form-group:nth-child(1) {
      animation-delay: 0.25s;
    }

    .form-group:nth-child(2) {
      animation-delay: 0.32s;
    }

    @keyframes fade-up {
      from {
        opacity: 0;
        transform: translateY(16px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    label {
      display: block;
      font-size: 12.5px;
      font-weight: 500;
      color: rgba(255, 255, 255, 0.55);
      margin-bottom: 8px;
      letter-spacing: 0.5px;
      text-transform: uppercase;
    }

    label i {
      margin-right: 6px;
      color: var(--accent2);
    }

    .input-wrap {
      position: relative;
    }

    .input-wrap .input-icon {
      position: absolute;
      left: 16px;
      top: 50%;
      transform: translateY(-50%);
      color: rgba(255, 255, 255, 0.3);
      font-size: 14px;
      pointer-events: none;
      transition: color 0.3s;
      z-index: 1;
    }

    .input-wrap input {
      width: 100%;
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid rgba(255, 255, 255, 0.10);
      border-radius: 12px;
      padding: 13px 16px 13px 44px;
      font-size: 14.5px;
      font-family: 'DM Sans', sans-serif;
      color: #fff;
      outline: none;
      transition: all 0.3s;
    }

    .input-wrap input::placeholder {
      color: rgba(255, 255, 255, 0.25);
    }

    .input-wrap input:focus {
      background: rgba(59, 130, 246, 0.08);
      border-color: rgba(59, 130, 246, 0.5);
      box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.10);
    }

    .input-wrap input:focus+.input-icon,
    .input-wrap:focus-within .input-icon {
      color: var(--accent);
    }

    /* Show/hide password toggle */
    .pw-toggle {
      position: absolute;
      right: 14px;
      top: 50%;
      transform: translateY(-50%);
      background: none;
      border: none;
      color: rgba(255, 255, 255, 0.3);
      cursor: pointer;
      font-size: 14px;
      padding: 4px;
      transition: color 0.3s;
    }

    .pw-toggle:hover {
      color: rgba(255, 255, 255, 0.7);
    }

    /* ── Submit button ── */
    .btn-login {
      width: 100%;
      margin-top: 10px;
      padding: 14px;
      border: none;
      border-radius: 12px;
      background: linear-gradient(135deg, #2563eb, #7c3aed);
      color: #fff;
      font-size: 15px;
      font-weight: 600;
      font-family: 'Sora', sans-serif;
      cursor: pointer;
      position: relative;
      overflow: hidden;
      transition: all 0.3s;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
      animation: fade-up 0.6s 0.4s both;
      letter-spacing: 0.3px;
    }

    .btn-login::before {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.15) 50%, transparent 100%);
      transform: translateX(-100%);
      transition: transform 0.5s;
    }

    .btn-login:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 30px rgba(37, 99, 235, 0.55);
    }

    .btn-login:hover::before {
      transform: translateX(100%);
    }

    .btn-login:active {
      transform: translateY(0);
    }

    /* Loading state */
    .btn-login .spinner {
      display: none;
      width: 18px;
      height: 18px;
      border: 2px solid rgba(255, 255, 255, 0.3);
      border-top-color: #fff;
      border-radius: 50%;
      animation: spin 0.6s linear infinite;
    }

    @keyframes spin {
      to {
        transform: rotate(360deg);
      }
    }

    .btn-login.loading .btn-text {
      display: none;
    }

    .btn-login.loading .spinner {
      display: block;
    }

    /* ── Error ── */
    .error-msg {
      background: rgba(239, 68, 68, 0.1);
      border: 1px solid rgba(239, 68, 68, 0.25);
      color: #fca5a5;
      border-radius: 10px;
      padding: 11px 14px;
      font-size: 13px;
      margin-bottom: 18px;
      display: flex;
      align-items: center;
      gap: 9px;
      animation: fade-up 0.4s both;
    }

    /* ── Divider & badges ── */
    .info-badges {
      display: flex;
      justify-content: center;
      gap: 10px;
      margin-top: 28px;
      animation: fade-up 0.6s 0.5s both;
      flex-wrap: wrap;
    }

    .badge {
      display: flex;
      align-items: center;
      gap: 6px;
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 20px;
      padding: 5px 12px;
      font-size: 11.5px;
      color: rgba(255, 255, 255, 0.4);
      letter-spacing: 0.3px;
    }

    .badge i {
      font-size: 10px;
      color: var(--accent);
    }

    /* ── Footer ── */
    .login-footer {
      text-align: center;
      margin-top: 20px;
      color: rgba(255, 255, 255, 0.2);
      font-size: 11.5px;
      line-height: 1.8;
      animation: fade-up 0.6s 0.55s both;
    }

    /* ── Responsive ── */
    @media (max-width: 480px) {
      .login-card {
        padding: 36px 28px;
        margin: 1rem;
        border-radius: 22px;
      }

      .login-title {
        font-size: 22px;
      }

      .logo-ring {
        width: 70px;
        height: 70px;
      }
    }

    @media (max-width: 360px) {
      .login-card {
        padding: 28px 20px;
      }

      .btn-login {
        font-size: 14px;
      }
    }

    /* ── Light mode overrides ── */
    html.light-mode body {
      background: #f0f4ff;
    }

    html.light-mode .bg-gradient {
      background:
        radial-gradient(ellipse 80% 60% at 20% 30%, rgba(59, 130, 246, 0.10) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 70%, rgba(139, 92, 246, 0.08) 0%, transparent 55%),
        linear-gradient(160deg, #e8f0ff 0%, #f0f4ff 50%, #eaf0ff 100%);
    }

    html.light-mode .login-card {
      background: rgba(255, 255, 255, 0.85);
      border-color: rgba(59, 130, 246, 0.15);
      box-shadow: 0 40px 80px rgba(59, 130, 246, 0.12), 0 0 0 1px rgba(59, 130, 246, 0.08);
    }

    html.light-mode .login-title {
      color: #0f172a;
    }

    html.light-mode .login-subtitle {
      color: #64748b;
    }

    html.light-mode label {
      color: #64748b;
    }

    html.light-mode .input-wrap input {
      background: rgba(59, 130, 246, 0.04);
      border-color: rgba(59, 130, 246, 0.15);
      color: #0f172a;
    }

    html.light-mode .input-wrap input::placeholder {
      color: #94a3b8;
    }

    html.light-mode .input-wrap .input-icon {
      color: #94a3b8;
    }

    html.light-mode .input-wrap input:focus {
      background: rgba(59, 130, 246, 0.06);
      border-color: rgba(59, 130, 246, 0.4);
    }

    html.light-mode .badge {
      background: rgba(59, 130, 246, 0.06);
      border-color: rgba(59, 130, 246, 0.12);
      color: #64748b;
    }

    html.light-mode .login-footer {
      color: #94a3b8;
    }

    html.light-mode .pw-toggle {
      color: #94a3b8;
    }

    html.light-mode .orb {
      opacity: 0.25;
    }

    html.light-mode .particle {
      background: rgba(59, 130, 246, 0.35);
    }

    html.light-mode .grid-lines {
      background-image:
        linear-gradient(rgba(59, 130, 246, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.06) 1px, transparent 1px);
    }

.forgot-wrap { text-align: right; margin-top: 12px; }
.forgot-wrap a, .fp-link { color: #3b82f6; font-size: 13px; text-decoration: none; }
.forgot-wrap a:hover, .fp-link:hover { text-decoration: underline; }
.fp-link { display: block; text-align: center; margin-top: 14px; }
.label-row { display: flex; justify-content: space-between; align-items: center; }
.forgot-link { color: #3b82f6; font-size: 12px; text-decoration: none; white-space: nowrap; }
.forgot-link:hover { text-decoration: underline; }

.fp-overlay { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center;
  justify-content: center; background: rgba(0,0,0,.55); backdrop-filter: blur(4px); padding: 16px; }
.fp-overlay[hidden], .fp-pane[hidden] { display: none; }
.fp-box { position: relative; width: 100%; max-width: 380px; padding: 28px 24px;
  border-radius: 16px; background: #131a2b; color: #e5e7eb;
  border: 1px solid rgba(255,255,255,.1); box-shadow: 0 20px 60px rgba(0,0,0,.4); }
html.light-mode .fp-box { background: #fff; color: #111827; border-color: #e5e7eb; }
.fp-close { position: absolute; top: 10px; right: 14px; background: none; border: 0;
  font-size: 24px; color: inherit; cursor: pointer; opacity: .6; }
.fp-close:hover { opacity: 1; }
.fp-title { font-size: 18px; font-weight: 600; text-align: center; margin-bottom: 12px; }
.fp-steps { display: flex; justify-content: center; gap: 6px; margin-bottom: 16px; }
.fp-steps span { width: 28px; height: 4px; border-radius: 2px; background: rgba(128,128,128,.3); }
.fp-steps span.on { background: #3b82f6; }
.fp-hint { font-size: 13px; opacity: .75; margin: 0 0 14px; text-align: center; }
.fp-ok { color: #22c55e; opacity: 1; font-size: 15px; }
.fp-msg { display: none; font-size: 13px; padding: 8px 12px; border-radius: 8px; margin-bottom: 12px; }
.fp-msg.err { display: block; background: rgba(239,68,68,.12); color: #ef4444; }
.fp-msg.info { display: block; background: rgba(59,130,246,.12); color: #3b82f6; }