  /* index.css - SMART MONEY Login Page - Premium Glassmorphism Style */
  :root {
        --primary-gold: #c0982e;
    --primary-gold-light: #d4ad4a;
    --primary-gold-dark: #a8841f;
    --primary-gold-ultra-light: #f0e8d4;
    /* Pastel Colors from Image Palette */
    --beige-light: #EEEADC;
    --beige-medium: #CCCCBD;
    --beige-warm: #ECC986;
    --grey-light: #D5D5D0;
    --grey-medium: #A4AEBD;
    --grey-blue: #8994A7;
    --mint-light: #BFDED4;
    --purple-mauve: #957A83;
    --orange-soft: #EBA178;
    --pink-nude: #E1C7B8;
    --brown-light: #E1C7B8;
    --brown-medium: #948A4B;
    --cream-light: #F2C5A3;
    --sage-green: #82C5A3;
    --lavender: #EED5D4;
    
    /* Updated Primary Colors */
    --primary-dark: #82C5A3;
    --primary-darker: #6BAA8A;
    --primary-light: #BFDED4;
    --primary-lighter: #D0F2EA;
    --success: #82C5A3;
    --success-light: #BFDED4;
    --warning: #ECC986;
    --warning-light: #F2C5A3;
    --danger: #EBA178;
    --danger-bright: #F2C5A3;
    --info: #8994A7;
    --info-light: #D0E7F5;
    --neutral-1: #f9faf9;
    --neutral-2: #f4f6f4;
    --neutral-3: #eaeee8;
    --neutral-4: #dbe1d8;
    --neutral-5: #c8d2c5;
    --neutral-6: #b5c3b2;
    --neutral-7: #82c5a3;
    --neutral-8: #6baa8a;
    --neutral-9: #666767;
    --neutral-10: #3d7458;
    --white: #fff;
    --blue-soft: #8994A7;
    --pink-soft: #EED5D4;
    --grey-soft: #D5D5D0;
    --grey-box: #EEEADC;
    --grey-box-2: #CCCCBD;
    --blue: #8994A7;
    --red: #EBA178;
    --yellow-bright: #ECC986;
    --input-bg: #f8faf7;
    --glass-bg: rgba(255,255,255,0.9);
    --glass-blur: 16px;
      --gradient-main:  #c0982e;
  }
  body {
    font-family: 'Noto Sans Lao', sans-serif;
    background: linear-gradient(150deg, var(--primary-gold) 0%, var(--primary-gold-light) 50%, var(--primary-gold-dark) 100%);
    animation: headerGlow 3s ease-in-out infinite alternate;
    background-size: 600% 600%;
    animation: gradientMove 12s ease-in-out infinite;
    color: #666767;
    margin: 0;
    min-height: 100vh;
  }
.nae{
display: block;
text-align: center;

}
.nae p{
  margin-top: -10px;
  color:#c0982e;
}
  /* Dark mode text colors */
  [data-theme="dark"] body {
    color: #666767;
  }

  [data-theme="dark"] h1,
  [data-theme="dark"] h2 {
    color: #666767;
  }

  [data-theme="dark"] .toggle {
    color: #666767;
  }

  [data-theme="dark"] .input,
  [data-theme="dark"] .form-control {
    color: #666767;
  }

  [data-theme="dark"] .alert.success {
    color: #666767;
  }

  @media (prefers-color-scheme: dark) {
    body {
      color: #666767;
    }
    h1, h2 {
      color: #666767;
    }
    .toggle {
      color: #666767;
    }
    .input, .form-control {
      color: #666767;
    }
    .alert.success {
      color: #666767;
    }
  }
  @keyframes gradientMove {
    0% {
      background-position: 0% 50%;
    }
    25% {
      background-position: 50% 100%;
    }
    50% {
      background-position: 100% 50%;
    }
    75% {
      background-position: 50% 0%;
    }
    100% {
      background-position: 0% 50%;
    }
  }
  .logo {
    display: block;
    margin: 0 auto 1em;
    width: 100px;
  }
.main-container {
  background: white;
  border-radius: 24px;
  box-shadow: var(--shadow-main);
  padding: 2.5em 1.5em;
  margin: 2em auto;
  max-width: 400px;
  
  border: 1px solid #c0982e;
  transition: background 0.4s, box-shadow 0.3s;
}
  /* Headings */
  h1, h2 {
    color: #666767;
    margin-bottom: 0.5em;
    font-family: 'Noto Sans Lao', sans-serif;
    letter-spacing: 0.5px;
  }
  /* Inputs */
.input {
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(192, 152, 46, 0.3);
  border-radius: 10px;
  padding: 0.6em 1em;
  font-size: 1em;
  margin-bottom: 0.8em;
  width: 100%;
  color: #666767;
  box-sizing: border-box;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.input:focus {
  border: 1px solid white; 
  outline: none;
  box-shadow: 0 0 0 2px rgba(192, 152, 46, 0.2);
}
  /* Buttons */
  .button {
    background: linear-gradient(90deg, #c0982e 0%, #e8b939 100%);
    color: var(--white);
    border: none;
    border-radius: 18px;
    padding: 0.8em 1.6em;
    font-size: 1.08em;
    cursor: pointer;
    margin: 0.2em 0.1em;
    box-shadow: 0 4px 16px rgba(192,152,46,0.4), 0 1.5px 8px rgba(232,185,57,0.3);
    font-weight: bold;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6em;
    transition: background 0.25s, box-shadow 0.25s, transform 0.18s, color 0.18s;
  }
  .button:hover, .button:focus {
    background: linear-gradient(90deg, #e8b939 0%, #f0c850 100%);
    color: #fff;
    box-shadow: 0 8px 32px rgba(232,185,57,0.5);
    transform: translateY(-2px) scale(1.04);
  }
  /* Alerts */
  .alert {
    border-radius: 14px;
    padding: 1.2em;
    margin-bottom: 1em;
    font-weight: bold;
    box-shadow: 0 2px 12px #0001;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
  }
  .alert.error {
    background: linear-gradient(90deg, #EBA178 60%, #ECC986 100%);
    color: var(--white);
  }
  .alert.success {
    background: linear-gradient(90deg, #f0c850 60%, #c0982e 100%);
    color: #666767;
  }
  /* Password field */
  .password-wrapper {
    position: relative;
  }

  .toggle {
    color: #c0982e;
    font-size: 1.1em;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-52%);
    cursor: pointer;
    transition: color 0.2s;
    opacity: 0.8;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 1em;
  }
  .toggle:hover {
    color: #e8b939;
  }
  @media (max-width: 700px) {
    body {
      padding: 0.5em;
    }
    
    .main-container {
      padding: 1.5em 1.2em;
      margin: 1em auto;
      max-width: 95vw;
      border-radius: 20px;
      box-shadow: 0 4px 20px rgba(192,152,46,0.2);
    }
    
    .logo {
      width: 80px !important;
      margin-bottom: 0.8em;
    }
    
    h1 {
      font-size: 1.6em !important;
      margin-bottom: 0.4em !important;
    }
    
    .nae p {
      font-size: 0.85em !important;
      margin-bottom: 1.2em !important;
      line-height: 1.3 !important;
    }
    
    .input {
      padding: 0.8em 1em;
      font-size: 16px; /* Prevents zoom on iOS */
      border-radius: 12px;
      margin-bottom: 1em;
    }
    
    .button {
      padding: 0.9em 1.5em;
      font-size: 1.1em;
      border-radius: 15px;
      margin-top: 1.2em !important;
    }
    
    .toggle {
      right: 12px;
      font-size: 1.2em;
    }
    
    .alert {
      padding: 1em;
      font-size: 0.9em;
      border-radius: 12px;
    }
    
    label {
      font-size: 0.95em;
      margin-bottom: 0.4em;
      display: block;
      font-weight: 500;
    }
  }

  /* Extra small mobile devices */
  @media (max-width: 480px) {
    .main-container {
      padding: 1.2em 1em;
      margin: 0.5em auto;
      max-width: 98vw;
      border-radius: 18px;
    }
    
    h1 {
      font-size: 1.4em !important;
    }
    
    .nae p {
      font-size: 0.8em !important;
    }
    
    .input {
      padding: 0.75em 0.9em;
      font-size: 16px;
    }
    
    .button {
      padding: 0.85em 1.3em;
      font-size: 1.05em;
    }
  }

  /* Landscape mobile */
  @media (max-width: 700px) and (orientation: landscape) {
    .main-container {
      margin: 0.5em auto;
      padding: 1em 1.2em;
    }
    
    .logo {
      width: 60px !important;
      margin-bottom: 0.5em;
    }
    
    h1 {
      font-size: 1.3em !important;
      margin-bottom: 0.2em !important;
    }
    
    .nae p {
      font-size: 0.75em !important;
      margin-bottom: 0.8em !important;
    }
  }

  /* Dark/Light Mode Toggle Switch */
  .theme-toggle {
    width: 80px;
    height: 40px;
    background: linear-gradient(180deg, #f0c850 0%, #e8b939 100%);
    border-radius: 50px;
    position: relative;
    cursor: pointer;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.1), 
                0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
  }

  [data-theme="dark"] .theme-toggle {
    background: linear-gradient(180deg, #c0982e 0%, #a6821f 100%);
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.4), 
                0 4px 12px rgba(0,0,0,0.3);
  }

  .theme-toggle::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: #ECC986;
    border-radius: 50%;
    top: 50%;
    left: 8px;
    transform: translateY(-50%);
    box-shadow: 0 0 10px rgba(236, 201, 134, 0.6),
                inset -2px -2px 4px rgba(0,0,0,0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

  [data-theme="dark"] .theme-toggle::before {
    left: calc(100% - 28px);
    background: #8FD5C7;
    box-shadow: 0 0 15px rgba(143, 213, 199, 0.5),
                inset -2px -2px 4px rgba(0,0,0,0.3);
  }

  .theme-toggle::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(0,0,0,0.15);
    top: 12px;
    left: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

  [data-theme="dark"] .theme-toggle::after {
    left: calc(100% - 18px);
    top: 10px;
    background: rgba(60,60,60,0.8);
  }

  /* Clouds */
  .cloud {
    position: absolute;
    background: white;
    border-radius: 50px;
    opacity: 0.9;
    transition: all 0.4s ease;
  }

  .cloud-1 {
    width: 12px;
    height: 6px;
    top: 10px;
    right: 15px;
    box-shadow: 2px 0 0 white;
  }

  .cloud-2 {
    width: 10px;
    height: 5px;
    top: 22px;
    right: 8px;
  }

  [data-theme="dark"] .cloud {
    opacity: 0;
  }

  /* Stars */
  .star {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0;
    transition: all 0.4s ease;
    box-shadow: 0 0 2px white;
  }

  [data-theme="dark"] .star {
    opacity: 1;
  }

  .star-1 {
    width: 2px;
    height: 2px;
    top: 8px;
    right: 12px;
  }

  .star-2 {
    width: 3px;
    height: 3px;
    top: 15px;
    right: 25px;
  }

  .star-3 {
    width: 2px;
    height: 2px;
    top: 25px;
    right: 18px;
  }

  .star-4 {
    width: 1.5px;
    height: 1.5px;
    top: 12px;
    right: 35px;
  }

  .star-5 {
    width: 2.5px;
    height: 2.5px;
    top: 28px;
    right: 30px;
  }

/* Loading overlay styles */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(192, 152, 46, 0.95) 0%, 
        rgba(238, 234, 220, 0.95) 50%, 
        rgba(236, 201, 134, 0.95) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease-out;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.loading-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top: 5px solid var(--primary-dark);
    border-radius: 50%;
    animation: spin 1.2s linear infinite;
    margin-bottom: 2em;
    box-shadow: 0 0 20px rgba(130, 197, 163, 0.3);
}

.loading-text {
    color: #333;
    font-size: 1.3em;
    font-weight: 600;
    font-family: 'Noto Sans Lao', sans-serif;
    text-align: center;
    animation: pulse 1.8s ease-in-out infinite;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { 
        opacity: 0.6; 
        transform: scale(1);
    }
    50% { 
        opacity: 1; 
        transform: scale(1.02);
    }
}

/* Loading dots animation */
.loading-dots::after {
    content: '';
    animation: dots 2s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}

/* Mobile responsive loading */
@media (max-width: 700px) {
    .loading-spinner {
        width: 50px;
        height: 50px;
        border-width: 4px;
        margin-bottom: 1.5em;
    }
    
    .loading-text {
        font-size: 1.2em;
        padding: 0 1em;
    }
}

@media (max-width: 480px) {
    .loading-spinner {
        width: 45px;
        height: 45px;
        border-width: 3px;
        margin-bottom: 1.3em;
    }
    
    .loading-text {
        font-size: 1.1em;
    }
}

/* Landscape orientation adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .loading-spinner {
        width: 40px;
        height: 40px;
        margin-bottom: 1em;
    }
    
    .loading-text {
        font-size: 1em;
    }
}