/* ============================================================
   EXTRAORDINARY KIDS — LOGIN PAGE STYLES
   File: login.css
   Used by: public/login.html
   ============================================================ */
    :root {
      --brand-blue: #0253C3;
      --brand-red: #FD0100;
      --brand-yellow: #FDD413;
      --brand-green: #83E473;
      --brand-coral: #FC5D53;
      --sky-blue: #ACE4FD;
      --black: #000000;
      --white: #FFFFFF;
      --rainbow-red: #FC5D53;
      --rainbow-yellow: #FCDC3C;
      --rainbow-green: #83E473;
      --sun: #FDD413;
      --pencil-yellow: #FCC40B;
      --cloud-blue: #ACE4FD;
      --book-red: #FA4B3D;
      --shirt-pink: #FC3A6D;
      --rocket-nose: #F23532;
      --rocket-fin: #02A573;
      --flame: #FFB601;
      --squiggle: #EB63C2;
      --window-white: #F0F0F1;
      --rainbow-red-alt: #FB6D6B;
      --rainbow-yellow-alt: #FBE56C;
      --rainbow-green-alt: #AAF393;
      --sun-alt: #FCCC05;
      --pencil-alt: #F5B402;
      --eraser: #FB8D75;
      --cloud-alt: #B5EAFE;
      --book-alt: #F93D3C;
      --shirt-pink-alt: #F42659;
      --boy-teal: #03BBB4;
      --text-black: #010101;
      --pre-green: #167A5B;
      /* login-specific */
      --glass-bg: rgba(255, 255, 255, 0.9);
      --glass-border: rgba(255, 255, 255, 0.6);
      --shadow-soft: 0 30px 60px -20px rgba(2, 83, 195, 0.4);
      --shadow-card: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
      --aurora-1: rgba(2, 83, 195, 0.15);
      --aurora-2: rgba(253, 212, 19, 0.12);
      --aurora-3: rgba(131, 228, 115, 0.12);
      --aurora-4: rgba(253, 1, 0, 0.08);
    }

    /* ------------------------------------------------------------
       GLOBAL RESET & BASE
    ------------------------------------------------------------ */
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: 'Nunito', sans-serif;
      background: var(--white);
      color: var(--black);
      overflow-x: hidden;
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      background: linear-gradient(145deg, #f0f9ff 0%, #e6f4ff 40%, #fff8e7 100%);
      padding: 1.5rem;
      position: relative;
    }

    /* ------------------------------------------------------------
       MESMERIZING BACKGROUND — aurora, floating shapes, particles
    ------------------------------------------------------------ */
    .bg-aurora {
      position: fixed;
      inset: 0;
      pointer-events: none;
      z-index: 0;
      overflow: hidden;
      background: radial-gradient(circle at 20% 30%, var(--aurora-1) 0%, transparent 50%),
                  radial-gradient(circle at 80% 70%, var(--aurora-2) 0%, transparent 50%),
                  radial-gradient(circle at 40% 80%, var(--aurora-3) 0%, transparent 50%),
                  radial-gradient(circle at 70% 20%, var(--aurora-4) 0%, transparent 50%);
      animation: auroraShift 15s infinite alternate ease-in-out;
    }
    @keyframes auroraShift {
      0% { transform: scale(1) rotate(0deg); opacity: 0.8; }
      100% { transform: scale(1.2) rotate(3deg); opacity: 1; }
    }

    .bg-shapes {
      position: fixed;
      inset: 0;
      pointer-events: none;
      z-index: 1;
      overflow: hidden;
    }
    .bg-shapes .shape {
      position: absolute;
      border-radius: 50%;
      opacity: 0.2;
      animation: floatShape 18s infinite alternate ease-in-out;
      filter: blur(2px);
    }
    .shape-1 {
      width: 600px; height: 600px;
      background: radial-gradient(circle, var(--brand-blue), transparent 70%);
      top: -200px; left: -180px;
      animation-duration: 24s;
    }
    .shape-2 {
      width: 500px; height: 500px;
      background: radial-gradient(circle, var(--brand-yellow), transparent 70%);
      bottom: -150px; right: -100px;
      animation-duration: 28s; animation-delay: -4s;
    }
    .shape-3 {
      width: 400px; height: 400px;
      background: radial-gradient(circle, var(--brand-red), transparent 70%);
      top: 30%; right: 5%;
      animation-duration: 22s; animation-delay: -8s;
    }
    .shape-4 {
      width: 450px; height: 450px;
      background: radial-gradient(circle, var(--brand-green), transparent 70%);
      bottom: 10%; left: 0%;
      animation-duration: 26s; animation-delay: -12s;
    }
    .shape-5 {
      width: 300px; height: 300px;
      background: radial-gradient(circle, var(--squiggle), transparent 70%);
      top: 60%; left: 45%;
      animation-duration: 20s; animation-delay: -6s;
    }
    @keyframes floatShape {
      0% { transform: translate(0, 0) scale(1) rotate(0deg); }
      100% { transform: translate(80px, -60px) scale(1.2) rotate(15deg); }
    }

    /* floating playful icons */
    .float-icon {
      position: fixed;
      pointer-events: none;
      z-index: 2;
      font-size: 2.2rem;
      opacity: 0.4;
      animation: floatIcon 12s infinite alternate ease-in-out;
      color: var(--brand-blue);
      filter: drop-shadow(0 8px 12px rgba(0,0,0,0.08));
    }
    .float-icon.sun { top: 5%; left: 4%; font-size: 4.5rem; color: var(--sun); opacity: 0.55; animation-duration: 14s; }
    .float-icon.cloud { top: 12%; right: 6%; font-size: 3.8rem; color: var(--cloud-blue); opacity: 0.55; animation-duration: 16s; }
    .float-icon.star { bottom: 12%; left: 8%; font-size: 3.2rem; color: var(--brand-yellow); opacity: 0.45; animation-duration: 18s; }
    .float-icon.pencil { bottom: 8%; right: 5%; font-size: 3.5rem; color: var(--brand-red); opacity: 0.4; animation-duration: 20s; }
    .float-icon.rocket { top: 45%; left: 2%; font-size: 3rem; color: var(--brand-coral); opacity: 0.35; animation-duration: 22s; }
    .float-icon.heart { top: 20%; left: 18%; font-size: 2.5rem; color: var(--shirt-pink); opacity: 0.3; animation-duration: 19s; }
    @keyframes floatIcon {
      0% { transform: translateY(0) rotate(0deg); }
      100% { transform: translateY(-45px) rotate(12deg); }
    }

    /* sparkle particles (added via JS) */
    .sparkle {
      position: fixed;
      pointer-events: none;
      z-index: 3;
      border-radius: 50%;
      animation: sparkleAnim 3s infinite ease-in-out;
      opacity: 0;
    }
    @keyframes sparkleAnim {
      0% { opacity: 0; transform: scale(0.5); }
      50% { opacity: 1; transform: scale(1.2); }
      100% { opacity: 0; transform: scale(0.5); }
    }

    /* ------------------------------------------------------------
       PRELOADER — award-winning preschool + security spinner        
    ------------------------------------------------------------ */
    #preloader {
      position: fixed;
      inset: 0;
      z-index: 99999;
      display: flex;
      align-items: center;
      justify-content: center;
      background: linear-gradient(145deg, #012d6b 0%, #011f4a 60%, #010f2b 100%);
      transition: opacity 1s cubic-bezier(0.23, 1, 0.32, 1), visibility 1s;
      overflow: hidden;
    }

    #preloader.hide-preloader {
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
    }

    /* animated starfield background for preloader */
    .preloader-bg {
      position: absolute;
      inset: 0;
      overflow: hidden;
    }
    .preloader-bg .glow-orb {
      position: absolute;
      border-radius: 50%;
      filter: blur(60px);
      opacity: 0.4;
      animation: orbFloat 12s infinite alternate ease-in-out;
    }
    .preloader-bg .orb-1 {
      width: 500px; height: 500px;
      background: radial-gradient(circle, var(--brand-blue), transparent 70%);
      top: -150px; left: -100px;
      animation-duration: 18s;
    }
    .preloader-bg .orb-2 {
      width: 450px; height: 450px;
      background: radial-gradient(circle, var(--brand-yellow), transparent 70%);
      bottom: -120px; right: -80px;
      animation-duration: 22s; animation-delay: -5s;
    }
    .preloader-bg .orb-3 {
      width: 350px; height: 350px;
      background: radial-gradient(circle, var(--brand-green), transparent 70%);
      top: 40%; left: 60%;
      animation-duration: 20s; animation-delay: -9s;
    }
    .preloader-bg .orb-4 {
      width: 400px; height: 400px;
      background: radial-gradient(circle, var(--brand-red), transparent 70%);
      bottom: 30%; left: 10%;
      animation-duration: 24s; animation-delay: -14s;
    }
    @keyframes orbFloat {
      0% { transform: translate(0, 0) scale(1); }
      100% { transform: translate(60px, -40px) scale(1.2); }
    }

    /* floating mini items around the spinner */
    .preloader-float {
      position: absolute;
      font-size: 2rem;
      opacity: 0;
      animation: preloaderFloat 4s infinite ease-in-out;
      filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.3));
      z-index: 5;
    }
    @keyframes preloaderFloat {
      0% { opacity: 0; transform: translateY(20px) scale(0.6) rotate(0deg); }
      20% { opacity: 0.9; }
      80% { opacity: 0.9; }
      100% { opacity: 0; transform: translateY(-40px) scale(1.2) rotate(20deg); }
    }

    /* main spinner container */
    .spinner-container {
      position: relative;
      width: 320px;
      height: 320px;
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 10;
    }

    /* outer rotating ring — magic rainbow */
    .spinner-ring {
      position: absolute;
      border-radius: 50%;
      border: 6px solid transparent;
    }
    .ring-1 {
      width: 280px; height: 280px;
      border-top-color: var(--brand-yellow);
      border-right-color: var(--brand-blue);
      animation: spinRing1 2.8s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
      box-shadow: 0 0 40px rgba(253, 212, 19, 0.4), inset 0 0 30px rgba(2, 83, 195, 0.15);
    }
    .ring-2 {
      width: 240px; height: 240px;
      border-bottom-color: var(--brand-green);
      border-left-color: var(--brand-red);
      animation: spinRing2 2.2s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
      box-shadow: 0 0 35px rgba(131, 228, 115, 0.35), inset 0 0 25px rgba(253, 1, 0, 0.1);
    }
    .ring-3 {
      width: 200px; height: 200px;
      border-top-color: var(--squiggle);
      border-right-color: var(--brand-coral);
      animation: spinRing3 3.2s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
      box-shadow: 0 0 30px rgba(235, 99, 194, 0.4), inset 0 0 20px rgba(252, 93, 83, 0.12);
    }
    .ring-4 {
      width: 160px; height: 160px;
      border-bottom-color: var(--sky-blue);
      border-left-color: var(--pencil-yellow);
      animation: spinRing4 2.6s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
      box-shadow: 0 0 25px rgba(172, 228, 253, 0.4), inset 0 0 18px rgba(252, 196, 11, 0.1);
    }

    @keyframes spinRing1 {
      0% { transform: rotate(0deg) scale(1); }
      50% { transform: rotate(180deg) scale(1.08); }
      100% { transform: rotate(360deg) scale(1); }
    }
    @keyframes spinRing2 {
      0% { transform: rotate(0deg) scale(1); }
      50% { transform: rotate(-180deg) scale(1.1); }
      100% { transform: rotate(-360deg) scale(1); }
    }
    @keyframes spinRing3 {
      0% { transform: rotate(0deg) scale(1); }
      50% { transform: rotate(180deg) scale(1.12); }
      100% { transform: rotate(360deg) scale(1); }
    }
    @keyframes spinRing4 {
      0% { transform: rotate(0deg) scale(1); }
      50% { transform: rotate(-180deg) scale(1.15); }
      100% { transform: rotate(-360deg) scale(1); }
    }

    /* center icon carousel — preschool + security */
    .center-icon {
      position: absolute;
      font-size: 4.2rem;
      animation: centerPulse 1.8s infinite ease-in-out;
      filter: drop-shadow(0 0 30px rgba(253, 212, 19, 0.6));
      z-index: 8;
      transition: all 0.3s;
    }
    @keyframes centerPulse {
      0%, 100% { transform: scale(1) rotate(-3deg); }
      50% { transform: scale(1.15) rotate(3deg); }
    }

    /* orbiting items — the magic */
    .orbit-item {
      position: absolute;
      font-size: 2.4rem;
      opacity: 0.9;
      filter: drop-shadow(0 8px 15px rgba(0, 0, 0, 0.3));
      animation: orbitItem 4s infinite linear;
      z-index: 7;
      pointer-events: none;
    }
    .orbit-item:nth-child(1) { animation-delay: 0s; }
    .orbit-item:nth-child(2) { animation-delay: -0.5s; }
    .orbit-item:nth-child(3) { animation-delay: -1s; }
    .orbit-item:nth-child(4) { animation-delay: -1.5s; }
    .orbit-item:nth-child(5) { animation-delay: -2s; }
    .orbit-item:nth-child(6) { animation-delay: -2.5s; }
    .orbit-item:nth-child(7) { animation-delay: -3s; }
    .orbit-item:nth-child(8) { animation-delay: -3.5s; }

    @keyframes orbitItem {
      0% {
        transform: rotate(0deg) translateX(140px) rotate(0deg);
      }
      100% {
        transform: rotate(360deg) translateX(140px) rotate(-360deg);
      }
    }

    /* loader text */
    .loader-text {
      position: absolute;
      bottom: -70px;
      left: 50%;
      transform: translateX(-50%);
      color: #fff;
      font-weight: 800;
      font-size: 1.1rem;
      letter-spacing: 0.3em;
      text-transform: uppercase;
      white-space: nowrap;
      text-shadow: 0 0 20px rgba(253, 212, 19, 0.8), 0 0 40px rgba(2, 83, 195, 0.6);
      animation: textGlow 2s infinite alternate;
    }
    @keyframes textGlow {
      0% { opacity: 0.7; letter-spacing: 0.3em; }
      100% { opacity: 1; letter-spacing: 0.5em; }
    }

    /* progress dots */
    .loader-dots {
      position: absolute;
      bottom: -110px;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      gap: 12px;
    }
    .loader-dots span {
      width: 12px; height: 12px;
      border-radius: 50%;
      background: var(--brand-yellow);
      animation: dotBounce 1.4s infinite ease-in-out;
      box-shadow: 0 0 20px rgba(253, 212, 19, 0.8);
    }
    .loader-dots span:nth-child(1) { animation-delay: 0s; background: var(--brand-blue); }
    .loader-dots span:nth-child(2) { animation-delay: 0.2s; background: var(--brand-yellow); }
    .loader-dots span:nth-child(3) { animation-delay: 0.4s; background: var(--brand-green); }
    .loader-dots span:nth-child(4) { animation-delay: 0.6s; background: var(--brand-red); }
    .loader-dots span:nth-child(5) { animation-delay: 0.8s; background: var(--squiggle); }

    @keyframes dotBounce {
      0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
      40% { transform: scale(1.4); opacity: 1; }
    }

    /* ------------------------------------------------------------
       LOGIN CARD – THE STAR
    ------------------------------------------------------------ */
    .login-wrapper {
      position: relative;
      z-index: 10;
      width: 100%;
      max-width: 1300px;
      margin: 0 auto;
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 90vh;
    }

    .login-card {
      display: flex;
      width: 100%;
      max-width: 1200px;
      min-height: 680px;
      background: var(--glass-bg);
      backdrop-filter: blur(24px) saturate(200%);
      -webkit-backdrop-filter: blur(24px) saturate(200%);
      border-radius: 70px 70px 70px 24px;
      box-shadow: var(--shadow-soft), 0 0 0 3px rgba(255, 255, 255, 0.8) inset;
      border: 3px solid var(--glass-border);
      overflow: hidden;
      transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.4s ease;
      animation: cardAppear 1s cubic-bezier(0.23, 1, 0.32, 1);
      position: relative;
    }
    .login-card::before {
      content: '';
      position: absolute;
      inset: -2px;
      border-radius: 72px 72px 72px 26px;
      padding: 2px;
      background: linear-gradient(135deg, var(--brand-blue), var(--brand-yellow), var(--brand-green), var(--brand-red), var(--brand-blue));
      background-size: 400% 400%;
      -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
      -webkit-mask-composite: xor;
      mask-composite: exclude;
      animation: borderGlow 6s infinite alternate ease-in-out;
      pointer-events: none;
    }
    @keyframes borderGlow {
      0% { background-position: 0% 50%; }
      100% { background-position: 100% 50%; }
    }
    .login-card:hover {
      box-shadow: 0 50px 100px -30px rgba(2, 83, 195, 0.55), 0 0 0 3px rgba(255, 255, 255, 0.9) inset;
      transform: scale(1.005);
    }
    @keyframes cardAppear {
      0% { opacity: 0; transform: translateY(60px) scale(0.94); }
      100% { opacity: 1; transform: translateY(0) scale(1); }
    }

    /* ----- LEFT PANEL – BRAND & ILLUSTRATION (vibrant) ----- */
    .login-left {
      flex: 1 1 45%;
      background: linear-gradient(145deg, var(--brand-blue) 0%, #012d6b 60%, #011f4a 100%);
      padding: 3.5rem 2.5rem;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      text-align: center;
      color: var(--white);
      position: relative;
      overflow: hidden;
      border-radius: 0 50% 50% 0 / 0 55% 55% 0;
      transform: scale(1.02);
      box-shadow: 12px 0 40px -12px rgba(0, 0, 0, 0.4);
      z-index: 2;
    }
    .login-left::before {
      content: '';
      position: absolute;
      inset: 0;
      background: radial-gradient(circle at 25% 35%, rgba(253, 212, 19, 0.3) 0%, transparent 55%),
                  radial-gradient(circle at 75% 70%, rgba(131, 228, 115, 0.2) 0%, transparent 55%);
      pointer-events: none;
      animation: glowPulse 8s infinite alternate;
    }
    @keyframes glowPulse {
      0% { opacity: 0.7; }
      100% { opacity: 1; }
    }
    .login-left::after {
      content: '';
      position: absolute;
      bottom: -80px;
      left: -80px;
      width: 350px;
      height: 350px;
      background: radial-gradient(circle, var(--brand-green), transparent 70%);
      opacity: 0.25;
      border-radius: 50%;
      pointer-events: none;
    }

    /* --- BIGGER LOGO — centrepiece --- */
    .brand-badge {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 20px;
      margin-bottom: 2.5rem;
      z-index: 4;
      position: relative;
    }
    .brand-badge .logo-wrapper {
      position: relative;
      display: inline-block;
      border-radius: 50%;
      padding: 12px;
      background: rgba(255, 255, 255, 0.15);
      backdrop-filter: blur(6px);
      border: 2px solid rgba(255, 255, 255, 0.3);
      box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5), 0 0 0 4px rgba(253, 212, 19, 0.4);
      transition: transform 0.4s ease, box-shadow 0.4s ease;
    }
    .brand-badge .logo-wrapper:hover {
      transform: scale(1.06) rotate(-2deg);
      box-shadow: 0 30px 60px -10px rgba(0, 0, 0, 0.6), 0 0 0 6px rgba(253, 212, 19, 0.6);
    }
    .brand-badge img {
      height: 180px;
      width: auto;
      max-width: 320px;
      object-fit: contain;
      filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.35));
      transition: transform 0.4s ease;
      display: block;
      border-radius: 20px;
    }
    .brand-badge img:hover {
      transform: scale(1.03);
    }

    .brand-text {
      text-align: center;
    }
    .brand-text .line1 {
      font-size: 1.5rem;
      font-weight: 900;
      letter-spacing: -0.3px;
      color: var(--brand-yellow);
      text-transform: uppercase;
      line-height: 1.2;
      text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }
    .brand-text .line2 {
      font-size: 2rem;
      font-weight: 900;
      background: var(--brand-red);
      padding: 0.4rem 1.8rem;
      border-radius: 60px;
      color: var(--white);
      display: inline-block;
      line-height: 1.3;
      margin-top: 8px;
      box-shadow: 0 10px 0 #a80000, 0 15px 25px -5px rgba(0, 0, 0, 0.3);
      letter-spacing: 0.5px;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    .brand-text .line2:hover {
      transform: translateY(-3px);
      box-shadow: 0 13px 0 #a80000, 0 20px 30px -5px rgba(0, 0, 0, 0.35);
    }

    .left-illustration {
      margin: 1rem 0 2rem;
      font-size: 4rem;
      display: flex;
      gap: 1rem;
      flex-wrap: wrap;
      justify-content: center;
      z-index: 3;
    }
    .left-illustration i {
      filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.3));
      animation: floatIcon 5s infinite alternate;
    }
    .left-illustration i:nth-child(2) { animation-delay: 0.5s; color: var(--brand-yellow); }
    .left-illustration i:nth-child(3) { animation-delay: 1s; color: var(--brand-green); }
    .left-illustration i:nth-child(4) { animation-delay: 1.5s; color: var(--brand-coral); }

    .left-quote {
      font-size: 1.3rem;
      font-weight: 700;
      line-height: 1.7;
      max-width: 380px;
      margin: 0 auto;
      z-index: 3;
      background: rgba(255, 255, 255, 0.12);
      padding: 1.4rem 2rem;
      border-radius: 50px 50px 50px 16px;
      backdrop-filter: blur(8px);
      border: 2px solid rgba(255, 255, 255, 0.3);
      color: #fff;
      box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.2);
      transition: background 0.3s ease, transform 0.3s ease;
    }
    .left-quote:hover {
      background: rgba(255, 255, 255, 0.2);
      transform: translateY(-4px);
    }
    .left-quote i {
      color: var(--brand-yellow);
      margin-right: 8px;
      font-size: 1.5rem;
    }

    /* ----- RIGHT PANEL – FORM (clean, modern, delightful) ----- */
    .login-right {
      flex: 1 1 55%;
      padding: 3.5rem 3.5rem 3.5rem 3.5rem;
      background: transparent;
      display: flex;
      flex-direction: column;
      justify-content: center;
      position: relative;
      border-radius: 0 70px 70px 0;
    }

    /* --- BEAUTIFUL HOME BUTTON (top-right of form) --- */
    .home-btn {
      position: absolute;
      top: 1.8rem;
      right: 2.2rem;
      z-index: 20;
      width: 56px;
      height: 56px;
      border-radius: 50%;
      background: var(--white);
      border: 3px solid var(--brand-blue);
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--brand-blue);
      font-size: 1.5rem;
      text-decoration: none;
      box-shadow: 0 10px 20px -8px rgba(2, 83, 195, 0.4), 0 0 0 0 rgba(2, 83, 195, 0.2);
      transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
      animation: homePulse 3s infinite;
      cursor: pointer;
    }
    .home-btn:hover {
      background: var(--brand-blue);
      color: var(--white);
      transform: scale(1.12) rotate(5deg);
      box-shadow: 0 16px 28px -8px rgba(2, 83, 195, 0.6), 0 0 0 6px rgba(2, 83, 195, 0.15);
      border-color: var(--brand-yellow);
    }
    .home-btn i {
      transition: transform 0.2s;
    }
    .home-btn:hover i {
      transform: scale(1.1);
    }
    @keyframes homePulse {
      0% { box-shadow: 0 10px 20px -8px rgba(2, 83, 195, 0.4), 0 0 0 0 rgba(2, 83, 195, 0.3); }
      70% { box-shadow: 0 10px 20px -8px rgba(2, 83, 195, 0.4), 0 0 0 14px rgba(2, 83, 195, 0); }
      100% { box-shadow: 0 10px 20px -8px rgba(2, 83, 195, 0.4), 0 0 0 0 rgba(2, 83, 195, 0); }
    }

    /* --- TOOLTIP for Back to Home button --- */
    .home-btn .tooltip-text {
      visibility: hidden;
      width: 120px;
      background: var(--brand-blue);
      color: #fff;
      text-align: center;
      border-radius: 10px;
      padding: 8px 12px;
      position: absolute;
      z-index: 100;
      top: 110%;
      left: 50%;
      transform: translateX(-50%) translateY(-5px);
      opacity: 0;
      transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
      font-size: 0.85rem;
      font-weight: 700;
      box-shadow: 0 10px 20px -8px rgba(0, 0, 0, 0.3);
      border: 2px solid var(--brand-yellow);
      letter-spacing: 0.3px;
      pointer-events: none;
      white-space: nowrap;
    }
    .home-btn .tooltip-text::after {
      content: "";
      position: absolute;
      bottom: 100%;
      left: 50%;
      margin-left: -8px;
      border-width: 8px;
      border-style: solid;
      border-color: transparent transparent var(--brand-blue) transparent;
      filter: drop-shadow(0 -2px 2px rgba(0, 0, 0, 0.1));
    }
    .home-btn:hover .tooltip-text {
      visibility: visible;
      opacity: 1;
      transform: translateX(-50%) translateY(0);
    }

    .login-header {
      margin-bottom: 2.5rem;
      text-align: left;
      position: relative;
    }
    .login-header .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 8px 20px;
      border-radius: 999px;
      background: #fff9d9;
      border: 2px solid var(--brand-yellow);
      color: #063676;
      font-size: 0.75rem;
      font-weight: 900;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      margin-bottom: 1.2rem;
      box-shadow: 0 4px 10px rgba(253, 212, 19, 0.3);
    }
    .login-header h2 {
      font-size: 3rem;
      font-weight: 900;
      color: var(--brand-blue);
      line-height: 1.1;
      margin-bottom: 0.6rem;
      text-shadow: 2px 2px 0 rgba(253, 212, 19, 0.3);
    }
    .login-header h2 span {
      color: var(--brand-red);
      text-shadow: 2px 2px 0 rgba(253, 212, 19, 0.5);
      display: inline-block;
      animation: wiggle 2.5s infinite;
    }
    @keyframes wiggle {
      0%, 100% { transform: rotate(0deg); }
      25% { transform: rotate(3deg); }
      75% { transform: rotate(-3deg); }
    }
    .login-header p {
      color: #3f4f68;
      font-weight: 600;
      font-size: 1.05rem;
    }

    /* Floating label + icon input group */
    .input-group-modern {
      position: relative;
      margin-bottom: 2rem;
    }
    .input-group-modern .input-icon {
      position: absolute;
      left: 22px;
      top: 50%;
      transform: translateY(-50%);
      font-size: 1.3rem;
      color: var(--brand-blue);
      opacity: 0.8;
      transition: all 0.25s;
      z-index: 3;
    }
    .input-group-modern .form-control {
      width: 100%;
      padding: 1.2rem 3.8rem 1.2rem 3.8rem;
      border-radius: 70px;
      border: 2.5px solid #c8ddff;
      background: var(--white);
      font-weight: 600;
      font-size: 1.05rem;
      color: var(--black);
      transition: all 0.3s ease;
      box-shadow: 0 6px 16px rgba(2, 83, 195, 0.06);
    }
    .input-group-modern .form-control:focus {
      border-color: var(--brand-blue);
      box-shadow: 0 0 0 0.35rem rgba(2, 83, 195, 0.2), 0 16px 28px -10px rgba(2, 83, 195, 0.25);
      outline: none;
      transform: scale(1.005);
    }
    .input-group-modern .form-control::placeholder {
      color: #9aafcc;
      font-weight: 500;
    }
    .input-group-modern .form-control:focus ~ .input-icon {
      color: var(--brand-red);
      opacity: 1;
      transform: translateY(-50%) scale(1.1);
    }

    /* Password toggle button */
    .password-toggle {
      position: absolute;
      right: 20px;
      top: 50%;
      transform: translateY(-50%);
      background: transparent;
      border: none;
      color: #7b8798;
      font-size: 1.35rem;
      cursor: pointer;
      z-index: 5;
      transition: color 0.25s, transform 0.25s;
      padding: 8px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 46px;
      height: 46px;
    }
    .password-toggle:hover {
      color: var(--brand-blue);
      transform: translateY(-50%) scale(1.15);
      background: rgba(2, 83, 195, 0.08);
    }

    /* Remember me & forgot link */
    .login-options {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin: 1.4rem 0 2rem;
      font-weight: 600;
    }
    .form-check-input {
      width: 1.4rem;
      height: 1.4rem;
      border-radius: 10px;
      border: 2.5px solid #b8cef0;
      margin-right: 10px;
      cursor: pointer;
      transition: all 0.25s;
    }
    .form-check-input:checked {
      background-color: var(--brand-blue);
      border-color: var(--brand-blue);
      box-shadow: 0 0 0 4px rgba(2, 83, 195, 0.15);
    }
    .form-check-label {
      color: #2f4058;
      font-weight: 700;
      cursor: pointer;
      font-size: 0.98rem;
    }
    .forgot-link {
      color: var(--brand-red);
      font-weight: 800;
      text-decoration: none;
      font-size: 0.98rem;
      transition: all 0.25s;
      border-bottom: 2.5px solid transparent;
      padding-bottom: 2px;
    }
    .forgot-link:hover {
      color: #b30000;
      border-bottom-color: #b30000;
      transform: translateX(2px);
    }

    /* Login button — bold, shiny, bouncy */
    .btn-login-modern {
      width: 100%;
      padding: 1.2rem 2rem;
      border-radius: 70px;
      border: none;
      background: linear-gradient(135deg, var(--brand-blue), #01306b);
      color: var(--white);
      font-weight: 900;
      font-size: 1.35rem;
      letter-spacing: 0.6px;
      box-shadow: 0 12px 0 #01265a, 0 25px 35px -12px rgba(2, 83, 195, 0.6);
      transition: all 0.15s ease;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 14px;
      position: relative;
      overflow: hidden;
      cursor: pointer;
    }
    .btn-login-modern::after {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
      transition: left 0.7s ease;
    }
    .btn-login-modern:hover::after {
      left: 100%;
    }
    .btn-login-modern:hover {
      transform: translateY(5px);
      box-shadow: 0 7px 0 #01265a, 0 25px 35px -12px rgba(2, 83, 195, 0.6);
      background: linear-gradient(135deg, #0247a8, #011f4a);
    }
    .btn-login-modern:active {
      transform: translateY(10px);
      box-shadow: 0 2px 0 #01265a;
    }

    /* Extra hint: demo credentials styled beautifully */
    .demo-hint {
      text-align: center;
      margin-top: 2rem;
      font-size: 0.98rem;
      color: #4d5b73;
      background: rgba(2, 83, 195, 0.05);
      padding: 1rem 1.5rem;
      border-radius: 70px;
      border: 2px dashed var(--brand-yellow);
      font-weight: 700;
      transition: background 0.25s, transform 0.25s;
    }
    .demo-hint:hover {
      background: rgba(253, 212, 19, 0.12);
      transform: scale(1.01);
    }
    .demo-hint i {
      color: var(--brand-red);
      margin-right: 8px;
    }
    .demo-hint strong {
      color: var(--brand-blue);
      background: #eaf6ff;
      padding: 0.3rem 1rem;
      border-radius: 40px;
      font-weight: 900;
      display: inline-block;
      margin: 0 2px;
    }

    /* Back to home link */
    .back-home {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      margin-top: 2rem;
      color: var(--brand-blue);
      font-weight: 800;
      text-decoration: none;
      font-size: 1.05rem;
      transition: all 0.25s;
      align-self: flex-start;
      padding: 8px 0;
      position: relative;
    }
    .back-home i {
      transition: transform 0.25s;
      font-size: 1.1rem;
    }
    .back-home:hover {
      color: var(--brand-red);
      gap: 14px;
    }
    .back-home:hover i {
      transform: translateX(-6px);
    }

    /* Tooltip for the back-home link (text-based) */
    .back-home .tooltip-text {
      visibility: hidden;
      width: 140px;
      background: var(--brand-blue);
      color: #fff;
      text-align: center;
      border-radius: 10px;
      padding: 8px 12px;
      position: absolute;
      z-index: 100;
      bottom: 130%;
      left: 0;
      transform: translateY(5px);
      opacity: 0;
      transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
      font-size: 0.85rem;
      font-weight: 700;
      box-shadow: 0 10px 20px -8px rgba(0, 0, 0, 0.3);
      border: 2px solid var(--brand-yellow);
      letter-spacing: 0.3px;
      pointer-events: none;
      white-space: nowrap;
    }
    .back-home .tooltip-text::after {
      content: "";
      position: absolute;
      top: 100%;
      left: 18px;
      margin-left: -8px;
      border-width: 8px;
      border-style: solid;
      border-color: var(--brand-blue) transparent transparent transparent;
      filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.1));
    }
    .back-home:hover .tooltip-text {
      visibility: visible;
      opacity: 1;
      transform: translateY(0);
    }

    /* ============================================================
       💎 WORLD-CLASS FORGOT PASSWORD MODAL
       ============================================================ */
    .fp-modal-overlay {
      position: fixed;
      inset: 0;
      z-index: 10000;
      background: rgba(1, 15, 43, 0.65);
      backdrop-filter: blur(16px) saturate(180%);
      -webkit-backdrop-filter: blur(16px) saturate(180%);
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 1.5rem;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.4s cubic-bezier(0.23, 1, 0.32, 1), visibility 0.4s;
    }
    .fp-modal-overlay.active {
      opacity: 1;
      visibility: visible;
    }
    .fp-modal-container {
      position: relative;
      width: 100%;
      max-width: 480px;
      background: rgba(255, 255, 255, 0.96);
      backdrop-filter: blur(24px) saturate(200%);
      -webkit-backdrop-filter: blur(24px) saturate(200%);
      border-radius: 32px;
      padding: 3rem 2.5rem;
      box-shadow: 
        0 40px 80px -20px rgba(2, 83, 195, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.8) inset,
        0 0 0 2px rgba(2, 83, 195, 0.1) inset;
      transform: scale(0.9) translateY(20px);
      transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
      overflow: hidden;
    }
    .fp-modal-overlay.active .fp-modal-container {
      transform: scale(1) translateY(0);
    }
    .fp-modal-container::before {
      content: '';
      position: absolute;
      inset: -2px;
      border-radius: 34px;
      padding: 2px;
      background: linear-gradient(135deg, var(--brand-blue), var(--brand-yellow), var(--brand-green), var(--brand-red), var(--brand-blue));
      background-size: 300% 300%;
      -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
      -webkit-mask-composite: xor;
      mask-composite: exclude;
      animation: borderGlow 6s infinite alternate ease-in-out;
      pointer-events: none;
      z-index: -1;
    }
    .fp-modal-close {
      position: absolute;
      top: 1.2rem;
      right: 1.2rem;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      border: none;
      background: rgba(2, 83, 195, 0.08);
      color: var(--brand-blue);
      font-size: 1.1rem;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all 0.25s ease;
      z-index: 10;
    }
    .fp-modal-close:hover {
      background: var(--brand-red);
      color: white;
      transform: rotate(90deg) scale(1.1);
    }
    .fp-step {
      animation: fadeInUp 0.5s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    }
    @keyframes fadeInUp {
      from { opacity: 0; transform: translateY(15px); }
      to { opacity: 1; transform: translateY(0); }
    }
    .fp-icon-header {
      width: 80px;
      height: 80px;
      border-radius: 50%;
      background: linear-gradient(135deg, var(--brand-blue), var(--brand-coral));
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 1.5rem;
      font-size: 2rem;
      color: white;
      box-shadow: 0 15px 30px -10px rgba(2, 83, 195, 0.4);
      position: relative;
    }
    .fp-icon-header::after {
      content: '';
      position: absolute;
      inset: -4px;
      border-radius: 50%;
      border: 2px dashed rgba(253, 212, 19, 0.6);
      animation: spinSlow 10s linear infinite;
    }
    @keyframes spinSlow { to { transform: rotate(360deg); } }
    
    .fp-icon-header.success-pulse {
      background: linear-gradient(135deg, var(--brand-green), #167A5B);
      animation: successPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    @keyframes successPop {
      0% { transform: scale(0); }
      60% { transform: scale(1.2); }
      100% { transform: scale(1); }
    }

    .fp-modal-container h3 {
      font-size: 1.8rem;
      font-weight: 900;
      color: var(--brand-blue);
      text-align: center;
      margin-bottom: 0.5rem;
    }
    .fp-modal-container p {
      font-size: 0.95rem;
      color: #4d5b73;
      text-align: center;
      margin-bottom: 2rem;
      line-height: 1.6;
      font-weight: 600;
    }
    .fp-input-group {
      margin-bottom: 1.5rem;
    }
    
    /* OTP Inputs */
    .otp-container {
      display: flex;
      gap: 12px;
      justify-content: center;
      margin: 2rem 0;
    }
    .otp-input {
      width: 64px;
      height: 72px;
      border-radius: 18px;
      border: 2.5px solid #c8ddff;
      background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
      font-size: 1.8rem;
      font-weight: 900;
      text-align: center;
      color: var(--brand-blue);
      transition: all 0.25s cubic-bezier(0.23, 1, 0.32, 1);
      box-shadow: 0 4px 12px rgba(2, 83, 195, 0.06), 0 1px 2px rgba(255,255,255,0.8) inset;
    }
    .otp-input:focus {
      border-color: var(--brand-blue);
      box-shadow: 0 0 0 4px rgba(2, 83, 195, 0.15), 0 8px 20px -5px rgba(2, 83, 195, 0.25);
      outline: none;
      transform: scale(1.08) translateY(-2px);
    }
    .otp-input.filled {
      border-color: var(--brand-green);
      background: linear-gradient(180deg, #f0fdf4 0%, #dcfce7 100%);
      color: #167A5B;
    }

    .fp-resend {
      text-align: center;
      margin-top: 1.5rem;
      font-size: 0.9rem;
      color: #4d5b73;
      font-weight: 600;
    }
    .fp-resend a {
      color: var(--brand-blue);
      font-weight: 800;
      text-decoration: none;
      transition: color 0.2s;
    }
    .fp-resend a:hover {
      color: var(--brand-red);
      text-decoration: underline;
    }

    .fp-btn {
      position: relative;
      min-height: 56px;
    }
    .fp-btn .btn-spinner {
      display: none;
    }
    .fp-btn.loading .btn-text {
      display: none;
    }
    .fp-btn.loading .btn-spinner {
      display: inline-flex;
      align-items: center;
      gap: 10px;
    }

    /* ------------------------------------------------------------
       RESPONSIVE
    ------------------------------------------------------------ */
    @media (max-width: 1100px) {
      .login-card { max-width: 1000px; min-height: 650px; }
      .brand-badge img { height: 150px; }
      .login-header h2 { font-size: 2.6rem; }
    }
    @media (max-width: 992px) {
      .login-card {
        flex-direction: column;
        max-width: 600px;
        min-height: auto;
        border-radius: 60px 60px 60px 24px;
      }
      .login-left {
        border-radius: 60px 60px 0 0;
        padding: 3rem 2rem 2.5rem;
        transform: scale(1);
        box-shadow: 0 15px 30px -12px rgba(0, 0, 0, 0.2);
      }
      .login-left::after { display: none; }
      .brand-badge img { height: 140px; }
      .brand-text .line1 { font-size: 1.3rem; }
      .brand-text .line2 { font-size: 1.6rem; }
      .left-illustration { font-size: 3.5rem; margin: 1.5rem 0; }
      .left-quote { font-size: 1.15rem; max-width: 100%; }
      .login-right {
        padding: 3rem 2.5rem 3.5rem;
        border-radius: 0 0 60px 24px;
      }
      .login-header h2 { font-size: 2.4rem; }
      .home-btn { top: 1.5rem; right: 1.5rem; width: 52px; height: 52px; font-size: 1.4rem; }
      .home-btn .tooltip-text { width: 100px; font-size: 0.75rem; padding: 6px 8px; }
    }
    @media (max-width: 576px) {
      body { padding: 0.8rem; }
      .login-card { border-radius: 45px 45px 45px 18px; }
      .login-left { padding: 2.5rem 1.5rem 2rem; }
      .brand-badge img { height: 120px; }
      .brand-text .line1 { font-size: 1.1rem; }
      .brand-text .line2 { font-size: 1.3rem; padding: 0.3rem 1.2rem; }
      .left-illustration { font-size: 2.8rem; gap: 0.6rem; }
      .left-quote { font-size: 1rem; padding: 1.2rem; }
      .login-right { padding: 2.5rem 1.8rem 3rem; }
      .login-header h2 { font-size: 2rem; }
      .input-group-modern .form-control { padding: 1rem 3.2rem 1rem 3.2rem; font-size: 1rem; }
      .input-group-modern .input-icon { left: 18px; font-size: 1.15rem; }
      .password-toggle { right: 14px; width: 40px; height: 40px; font-size: 1.15rem; }
      .btn-login-modern { font-size: 1.15rem; padding: 1rem 1.6rem; }
      .home-btn { top: 1.2rem; right: 1.2rem; width: 46px; height: 46px; font-size: 1.2rem; }
      .home-btn .tooltip-text { width: 90px; font-size: 0.7rem; padding: 5px 6px; }
      .demo-hint { font-size: 0.9rem; padding: 0.8rem 1rem; }
      .login-options { flex-direction: column; gap: 1rem; align-items: flex-start; }
      .back-home .tooltip-text { width: 120px; font-size: 0.75rem; left: -10px; }
      .back-home .tooltip-text::after { left: 24px; }
      .spinner-container { width: 240px; height: 240px; }
      .ring-1 { width: 210px; height: 210px; }
      .ring-2 { width: 180px; height: 180px; }
      .ring-3 { width: 150px; height: 150px; }
      .ring-4 { width: 120px; height: 120px; }
      .center-icon { font-size: 3rem; }
      .orbit-item { font-size: 1.8rem; }
      @keyframes orbitItem {
        0% { transform: rotate(0deg) translateX(105px) rotate(0deg); }
        100% { transform: rotate(360deg) translateX(105px) rotate(-360deg); }
      }
      
      /* Modal Responsive */
      .fp-modal-container {
        padding: 2.5rem 1.5rem;
        border-radius: 24px;
      }
      .otp-input {
        width: 50px;
        height: 60px;
        font-size: 1.5rem;
      }
      .otp-container {
        gap: 8px;
      }
    }

    /* custom scrollbar */
    ::-webkit-scrollbar { width: 12px; }
    ::-webkit-scrollbar-track { background: #f0f7ff; }
    ::-webkit-scrollbar-thumb { background: var(--brand-blue); border-radius: 20px; border: 3px solid #f0f7ff; }
    ::-webkit-scrollbar-thumb:hover { background: var(--brand-red); }

    /* utility */
    .sr-only {
      position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
      overflow: hidden; clip: rect(0,0,0,0); border: 0;
    }

    /* ============================================================
       💎 WORLD-CLASS TOAST NOTIFICATION SYSTEM
       Glassmorphic, gradient aura, spinning conic ring,
       shimmer sweep, floating sparkles — matches admin dashboard.
    ============================================================ */
    .kts-stack {
      position: fixed;
      top: 24px;
      right: 24px;
      z-index: 99999;
      display: flex;
      flex-direction: column;
      gap: 14px;
      pointer-events: none;
      max-width: min(420px, calc(100vw - 32px));
    }
    .kts-toast {
      position: relative;
      min-width: 320px;
      max-width: 420px;
      border-radius: 22px;
      padding: 16px 18px 20px;
      overflow: hidden;
      pointer-events: auto;
      isolation: isolate;
      background: linear-gradient(135deg,
        rgba(255,255,255,0.98) 0%,
        rgba(250,252,255,0.96) 50%,
        rgba(255,255,255,0.98) 100%);
      backdrop-filter: blur(20px) saturate(180%);
      -webkit-backdrop-filter: blur(20px) saturate(180%);
      box-shadow:
        0 24px 60px -18px rgba(2,83,195,0.35),
        0 10px 24px -10px rgba(2,83,195,0.2),
        0 0 0 1px rgba(255,255,255,0.9) inset,
        0 0 0 1.5px rgba(2,83,195,0.08) inset;
      opacity: 0;
      transform: translateX(120%) scale(0.85) rotateY(-15deg);
      transition:
        opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.65s cubic-bezier(0.22, 1.4, 0.36, 1);
      will-change: transform, opacity;
    }
    .kts-toast.kts-in {
      opacity: 1;
      transform: translateX(0) scale(1) rotateY(0deg);
    }
    .kts-toast.kts-out {
      opacity: 0;
      transform: translateX(120%) scale(0.85) rotateY(15deg);
      transition:
        opacity 0.4s ease,
        transform 0.5s cubic-bezier(0.55, 0, 0.68, 0.19);
    }

    .kts-aura {
      position: absolute;
      inset: -40%;
      z-index: -2;
      background:
        radial-gradient(circle at 20% 20%, rgba(2,83,195,0.25), transparent 55%),
        radial-gradient(circle at 80% 80%, rgba(253,212,19,0.3), transparent 55%),
        radial-gradient(circle at 50% 50%, rgba(131,228,115,0.2), transparent 60%);
      filter: blur(28px);
      animation: ktsAuraFlow 8s ease-in-out infinite alternate;
      pointer-events: none;
    }
    @keyframes ktsAuraFlow {
      0%   { transform: rotate(0deg) scale(1); }
      50%  { transform: rotate(8deg) scale(1.08); }
      100% { transform: rotate(-6deg) scale(1.04); }
    }

    .kts-ring {
      position: absolute;
      inset: 0;
      border-radius: 22px;
      padding: 2px;
      background: conic-gradient(
        from 0deg,
        #0253C3 0deg,
        #83E473 90deg,
        #FDD413 180deg,
        #FD0100 270deg,
        #0253C3 360deg
      );
      -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
      -webkit-mask-composite: xor;
              mask-composite: exclude;
      animation: ktsRingSpin 6s linear infinite;
      opacity: 0.85;
      pointer-events: none;
    }
    @keyframes ktsRingSpin {
      to { transform: rotate(360deg); }
    }

    .kts-toast.kts-error .kts-ring {
      background: conic-gradient(
        from 0deg,
        #FD0100 0deg,
        #FC5D53 120deg,
        #FD0100 240deg,
        #FD0100 360deg
      );
    }
    .kts-toast.kts-info .kts-ring {
      background: conic-gradient(
        from 0deg,
        #0253C3 0deg,
        #ACE4FD 120deg,
        #0253C3 240deg,
        #0253C3 360deg
      );
    }

    .kts-shimmer {
      position: absolute;
      top: -50%;
      left: -60%;
      width: 40%;
      height: 200%;
      background: linear-gradient(
        115deg,
        transparent 0%,
        rgba(255,255,255,0.85) 45%,
        rgba(255,255,255,0.5) 55%,
        transparent 100%
      );
      transform: rotate(20deg);
      animation: ktsShimmerSweep 3.2s ease-in-out infinite;
      pointer-events: none;
      z-index: 2;
      mix-blend-mode: overlay;
    }
    @keyframes ktsShimmerSweep {
      0%   { left: -60%; }
      60%  { left: 140%; }
      100% { left: 140%; }
    }

    .kts-sparkles {
      position: absolute;
      inset: 0;
      pointer-events: none;
      overflow: hidden;
      z-index: 1;
    }
    .kts-sparkles span {
      position: absolute;
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: radial-gradient(circle, #fff 0%, #FDD413 40%, transparent 70%);
      opacity: 0;
      animation: ktsSparkleFloat 3.6s ease-in-out infinite;
    }
    .kts-sparkles span:nth-child(1) { top: 12%; left: 8%;  animation-delay: 0s;   }
    .kts-sparkles span:nth-child(2) { top: 70%; left: 14%; animation-delay: 0.6s; width: 5px; height: 5px; background: radial-gradient(circle, #fff 0%, #83E473 40%, transparent 70%); }
    .kts-sparkles span:nth-child(3) { top: 20%; left: 88%; animation-delay: 1.2s; width: 7px; height: 7px; background: radial-gradient(circle, #fff 0%, #FD0100 40%, transparent 70%); }
    .kts-sparkles span:nth-child(4) { top: 78%; left: 82%; animation-delay: 1.8s; }
    .kts-sparkles span:nth-child(5) { top: 45%; left: 4%;  animation-delay: 2.4s; width: 5px; height: 5px; }
    .kts-sparkles span:nth-child(6) { top: 55%; left: 94%; animation-delay: 3s;   }

    @keyframes ktsSparkleFloat {
      0%   { opacity: 0; transform: translateY(6px) scale(0.4); }
      30%  { opacity: 1; transform: translateY(-4px) scale(1.2); }
      70%  { opacity: 0.7; transform: translateY(-10px) scale(0.9); }
      100% { opacity: 0; transform: translateY(-18px) scale(0.3); }
    }

    .kts-content {
      position: relative;
      z-index: 3;
      display: flex;
      align-items: center;
      gap: 14px;
    }
    .kts-icon-wrap {
      position: relative;
      flex-shrink: 0;
      width: 48px;
      height: 48px;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .kts-icon-pulse {
      position: absolute;
      inset: 0;
      border-radius: 50%;
      background: linear-gradient(135deg, #0253C3, #83E473);
      opacity: 0.35;
      animation: ktsIconPulse 2.4s ease-in-out infinite;
    }
    .kts-toast.kts-error .kts-icon-pulse {
      background: linear-gradient(135deg, #FD0100, #FC5D53);
    }
    .kts-toast.kts-info .kts-icon-pulse {
      background: linear-gradient(135deg, #0253C3, #ACE4FD);
    }
    @keyframes ktsIconPulse {
      0%, 100% { transform: scale(1);   opacity: 0.35; }
      50%      { transform: scale(1.4); opacity: 0.05; }
    }
    .kts-icon {
      position: relative;
      width: 48px;
      height: 48px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #fff;
      font-size: 1.35rem;
      background: linear-gradient(135deg, #0253C3 0%, #013a8a 100%);
      box-shadow:
        0 8px 20px -6px rgba(2,83,195,0.6),
        0 0 0 3px rgba(255,255,255,0.9),
        0 0 0 5px rgba(2,83,195,0.15);
      animation: ktsIconPop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    .kts-toast.kts-error .kts-icon {
      background: linear-gradient(135deg, #FD0100 0%, #b30000 100%);
      box-shadow:
        0 8px 20px -6px rgba(253,1,0,0.6),
        0 0 0 3px rgba(255,255,255,0.9),
        0 0 0 5px rgba(253,1,0,0.15);
    }
    .kts-toast.kts-info .kts-icon {
      background: linear-gradient(135deg, #0253C3 0%, #0247a8 100%);
    }
    @keyframes ktsIconPop {
      0%   { transform: scale(0.3) rotate(-45deg); opacity: 0; }
      60%  { transform: scale(1.15) rotate(6deg);  opacity: 1; }
      100% { transform: scale(1) rotate(0); }
    }
    .kts-text {
      flex: 1;
      min-width: 0;
    }
    .kts-label {
      font-family: 'Nunito', sans-serif;
      font-size: 0.68rem;
      font-weight: 900;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      color: #0253C3;
      margin-bottom: 2px;
      opacity: 0.75;
    }
    .kts-toast.kts-error .kts-label { color: #FD0100; }
    .kts-toast.kts-info .kts-label  { color: #0253C3; }

    .kts-message {
      font-family: 'Nunito', sans-serif;
      font-size: 1rem;
      font-weight: 800;
      color: #063676;
      line-height: 1.25;
      word-break: break-word;
    }
    .kts-close {
      flex-shrink: 0;
      width: 30px;
      height: 30px;
      border-radius: 50%;
      border: none;
      background: rgba(2,83,195,0.08);
      color: #0253C3;
      font-size: 0.75rem;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all 0.25s ease;
    }
    .kts-close:hover {
      background: #0253C3;
      color: #fff;
      transform: rotate(90deg) scale(1.1);
    }
    .kts-toast.kts-error .kts-close { color: #FD0100; background: rgba(253,1,0,0.08); }
    .kts-toast.kts-error .kts-close:hover { background: #FD0100; color: #fff; }

    .kts-progress {
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      height: 3px;
      background: linear-gradient(90deg, #0253C3 0%, #83E473 50%, #FDD413 100%);
      transform-origin: left center;
      transform: scaleX(1);
      animation: ktsProgress 3.8s linear forwards;
      border-bottom-left-radius: 22px;
      border-bottom-right-radius: 22px;
      z-index: 3;
    }
    .kts-toast.kts-error .kts-progress {
      background: linear-gradient(90deg, #FD0100 0%, #FC5D53 100%);
    }
    .kts-toast.kts-paused .kts-progress {
      animation-play-state: paused;
    }
    @keyframes ktsProgress {
      from { transform: scaleX(1); }
      to   { transform: scaleX(0); }
    }

    @media (max-width: 576px) {
      .kts-stack {
        top: 12px;
        right: 12px;
        left: 12px;
        max-width: none;
        gap: 10px;
      }
      .kts-toast {
        min-width: 0;
        max-width: 100%;
        width: 100%;
        border-radius: 20px;
        padding: 14px 14px 18px;
        transform: translateY(-150%) scale(0.9);
      }
      .kts-toast.kts-in  { transform: translateY(0) scale(1); }
      .kts-toast.kts-out { transform: translateY(-150%) scale(0.9); }
      .kts-content { gap: 12px; }
      .kts-icon-wrap, .kts-icon { width: 42px; height: 42px; }
      .kts-icon { font-size: 1.15rem; }
      .kts-message { font-size: 0.92rem; }
      .kts-label { font-size: 0.62rem; }
      .kts-close { width: 28px; height: 28px; }
    }

    @media (max-width: 360px) {
      .kts-message { font-size: 0.85rem; }
      .kts-icon-wrap, .kts-icon { width: 38px; height: 38px; }
      .kts-icon { font-size: 1rem; }
    }

    @media (prefers-reduced-motion: reduce) {
      .kts-toast, .kts-toast * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.15s !important;
      }
    }
