  /* index.css - SMART MONEY Login Page - Premium Glassmorphism Style */
  :root {
    --primary-blue-dark: #082D43;
    --primary-blue: #294B63;
    --gray-light: #EBECF0;
    --gray-medium: #A8A8A8;
    --gray-dark: #707070;
    --white: #fff;
    --input-bg: #EBECF0;
    --glass-bg: rgba(235,236,240,0.95);
    --glass-blur: 16px;
    --shadow-main: 0 4px 24px rgba(8,45,67,0.08), 0 1.5px 8px rgba(41,75,99,0.08);
    --gradient-main: linear-gradient(150deg, #082D43 0%, #294B63 100%);
  }
  body {
    font-family: 'Noto Sans Lao', sans-serif;
    background: var(--gradient-main);
    background-size: 600% 600%;
    animation: gradientMove 12s ease-in-out infinite;
    color: var(--gray-dark);
    margin: 0;
    min-height: 100vh;
  }
.nae{
display: block;
text-align: center;

}
.nae p{
  margin-top: -10px;
  color: var(--primary-blue);
}
  /* Dark mode text colors */

  [data-theme="dark"] body,
  [data-theme="dark"] h1,
  [data-theme="dark"] h2,
  [data-theme="dark"] .toggle,
  [data-theme="dark"] .input,
  [data-theme="dark"] .form-control,
  [data-theme="dark"] .alert.success {
    color: var(--gray-light);
  }

  @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: var(--gray-light);
  border-radius: 24px;
  box-shadow: var(--shadow-main);
  padding: 2.5em 1.5em;
  margin: 2em auto;
  max-width: 400px;
  border: 1px solid var(--primary-blue);
  transition: background 0.4s, box-shadow 0.3s;
}
  /* Headings */
  h1, h2 {
    color: var(--primary-blue-dark);
    margin-bottom: 0.5em;
    font-family: 'Noto Sans Lao', sans-serif;
    letter-spacing: 0.5px;
  }
  /* Inputs */
.input {
  background: var(--input-bg);
  border: 1px solid var(--primary-blue);
  border-radius: 10px;
  padding: 0.6em 1em;
  font-size: 1em;
  margin-bottom: 0.8em;
  width: 100%;
  color: var(--gray-dark);
  box-sizing: border-box;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.input:focus {
  border: 1px solid var(--primary-blue-dark); 
  outline: none;
  box-shadow: 0 0 0 2px rgba(8,45,67,0.12);
}
  /* Buttons */
  .button {
    background: linear-gradient(90deg, #082D43 0%, #294B63 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(8,45,67,0.12), 0 1.5px 8px rgba(41,75,99,0.10);
    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, #294B63 0%, #082D43 100%);
    color: #fff;
    box-shadow: 0 8px 32px rgba(8,45,67,0.18);
    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, #707070 60%, #A8A8A8 100%);
    color: var(--white);
  }
  .alert.success {
    background: linear-gradient(90deg, #294B63 60%, #082D43 100%);
    color: var(--gray-light);
  }
  /* Password field */
  .password-wrapper {
    position: relative;
  }

  .toggle {
    color: var(--primary-blue);
    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: var(--primary-blue-dark);
  }
  @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, #294B63 0%, #082D43 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, #707070 0%, #294B63 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: #A8A8A8;
    border-radius: 50%;
    top: 50%;
    left: 8px;
    transform: translateY(-50%);
    box-shadow: 0 0 10px rgba(168,168,168,0.3),
                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: #707070;
    box-shadow: 0 0 15px rgba(112,112,112,0.3),
                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(8, 45, 67, 0.95) 0%, 
    rgba(41, 75, 99, 0.93) 50%, 
    rgba(168, 168, 168, 0.92) 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-blue);
  border-radius: 50%;
  animation: spin 1.2s linear infinite;
  margin-bottom: 2em;
  box-shadow: 0 0 20px rgba(41, 75, 99, 0.18);
}


.loading-text {
  color: #fff;
  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;
    }
}