/*
 * AILA Tech Bundled CSS File
 * Generated: 2026-01-24 11:15:23
 * 
 * This file combines multiple CSS files into one for better performance.
 * Do not edit directly - edit source files and re-run merge_assets.py
 */


/* ========== premium-login.css ========== */
/*
 * AILA Tech - Premium Login Page
 * Beautiful, responsive login experience for all devices
 * Consistent with signup page design
 * v1.0
 */

/* ================================================
   CSS VARIABLES
   ================================================ */
:root {
  --login-primary: #0066FF;
  --login-primary-dark: #0052CC;
  --login-secondary: #00C48C;
  --login-gradient: linear-gradient(135deg, #0F172A 0%, #1E3A5F 50%, #0F172A 100%);
  --login-card-bg: rgba(255, 255, 255, 0.98);
  --login-text: #1F2937;
  --login-text-muted: #6B7280;
  --login-border: #E5E7EB;
  --login-error: #EF4444;
  --login-success: #10B981;
  --login-radius: 24px;
  --login-radius-sm: 12px;
  --login-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
  --login-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ================================================
   BODY & BACKGROUND
   ================================================ */
body.login-page {
  font-family: 'Noto Sans Lao', 'Phetsarath OT', 'Saysettha OT', 'Plus Jakarta Sans', sans-serif !important;
  min-height: 100vh;
  background: var(--login-gradient) !important;
  padding: 0 !important;
  margin: 0;
  overflow-x: hidden;
}

/* Ensure all elements inherit the base font, excluding Font Awesome icons */
body.login-page *:not(.fas):not(.far):not(.fab):not(.fal):not(.fad):not([class*="fa-"]) {
  font-family: 'Noto Sans Lao', 'Phetsarath OT', 'Saysettha OT', 'Plus Jakarta Sans', sans-serif !important;
}

/* Animated grid background */
body.login-page::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(90deg, transparent 98%, rgba(255, 255, 255, 0.03) 100%),
    linear-gradient(0deg, transparent 98%, rgba(255, 255, 255, 0.03) 100%);
  background-size: 80px 80px;
  animation: gridFloat 30s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes gridFloat {
  0% { transform: translate(0, 0); }
  100% { transform: translate(80px, 80px); }
}

/* ================================================
   AUTH NAVIGATION BAR - PREMIUM
   ================================================ */
.auth-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  z-index: 1000;
  height: 70px;
  display: flex;
  align-items: center;
}

.auth-nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
}

.auth-nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.auth-nav-logo img {
  height: 38px;
  width: auto;
  transition: transform var(--login-transition);
}

.auth-nav-logo:hover img {
  transform: scale(1.03);
}

.auth-nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.auth-nav-link {
  padding: 0.625rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--login-text-muted);
  text-decoration: none;
  border-radius: 10px;
  transition: all var(--login-transition);
}

.auth-nav-link:hover {
  color: var(--login-primary);
  background: rgba(0, 102, 255, 0.06);
}

.auth-nav-link.active {
  color: white;
  background: linear-gradient(135deg, var(--login-primary) 0%, var(--login-primary-dark) 100%);
  box-shadow: 0 4px 14px rgba(0, 102, 255, 0.25);
}

/* ================================================
   LOGIN WRAPPER
   ================================================ */
.login-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1rem;
  padding-top: 90px;
  padding-bottom: 2rem;
  position: relative;
  z-index: 1;
}

/* ================================================
   LOGIN CONTAINER - PREMIUM
   ================================================ */
.login-container {
  background: var(--login-card-bg) !important;
  backdrop-filter: blur(30px);
  border-radius: var(--login-radius) !important;
  box-shadow: var(--login-shadow) !important;
  width: 100%;
  max-width: 480px !important;
  padding: 2.5rem !important;
  position: relative;
  z-index: 10;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  animation: fadeSlideUp 0.6s ease-out;
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================================================
   LOGIN HEADER - PREMIUM
   ================================================ */
.login-header {
  text-align: center;
  margin-bottom: 2rem !important;
}

.login-header .login-icon {
  width: 72px !important;
  height: 72px !important;
  background: linear-gradient(135deg, var(--login-primary) 0%, var(--login-secondary) 100%) !important;
  border-radius: 20px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: 0 8px 24px rgba(0, 102, 255, 0.25) !important;
}

.login-header .login-icon i {
  font-size: 1.75rem !important;
  color: white !important;
}

.login-header h1 {
  font-size: 1.75rem !important;
  font-weight: 700 !important;
  color: var(--login-text) !important;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.login-header p {
  color: var(--login-text-muted) !important;
  font-size: 0.9375rem !important;
}

/* ================================================
   FORM GROUPS - PREMIUM
   ================================================ */
.form-group {
  margin-bottom: 1.25rem !important;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem !important;
  font-weight: 600 !important;
  color: var(--login-text) !important;
  font-size: 0.9375rem !important;
}

.form-group .required {
  color: var(--login-error);
}

.input-wrapper {
  position: relative;
}

.input-wrapper i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--login-text-muted) !important;
  font-size: 1rem;
  transition: color var(--login-transition);
  z-index: 1;
}

.form-group input {
  width: 100%;
  padding: 0.875rem 1rem 0.875rem 2.75rem !important;
  border: 2px solid var(--login-border) !important;
  border-radius: var(--login-radius-sm) !important;
  font-size: 1rem !important;
  font-weight: 500;
  color: var(--login-text);
  background: white !important;
  transition: all var(--login-transition) !important;
}

.form-group input:focus {
  outline: none !important;
  border-color: var(--login-primary) !important;
  box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.1) !important;
}

.form-group input:focus + i,
.input-wrapper:focus-within i {
  color: var(--login-primary) !important;
}

/* Password toggle */
.password-toggle {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--login-text-muted);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all var(--login-transition);
}

.password-toggle:hover {
  color: var(--login-primary);
  background: rgba(0, 102, 255, 0.06);
}

/* ================================================
   FORM OPTIONS - PREMIUM
   ================================================ */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem !important;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.remember-me input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  accent-color: var(--login-primary);
  cursor: pointer;
}

.remember-me span {
  font-size: 0.9rem;
  color: var(--login-text-muted);
}

.forgot-password {
  font-size: 0.9rem;
  color: var(--login-primary) !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  transition: opacity var(--login-transition);
}

.forgot-password:hover {
  opacity: 0.8;
  text-decoration: underline !important;
}

/* ================================================
   LOGIN BUTTON - PREMIUM
   ================================================ */
.btn-login,
.login-btn {
  width: 100%;
  padding: 1rem 1.5rem !important;
  background: linear-gradient(135deg, var(--login-primary) 0%, var(--login-primary-dark) 100%) !important;
  color: white !important;
  border: none !important;
  border-radius: var(--login-radius-sm) !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  cursor: pointer;
  transition: all var(--login-transition) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 14px rgba(0, 102, 255, 0.3) !important;
  min-height: 52px;
}

.btn-login:hover,
.login-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(0, 102, 255, 0.4) !important;
}

.btn-login:active,
.login-btn:active {
  transform: translateY(0) !important;
}

.btn-login:disabled,
.login-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
}

.btn-login i,
.login-btn i {
  transition: transform var(--login-transition);
}

.btn-login:hover i,
.login-btn:hover i {
  transform: translateX(4px);
}

/* ================================================
   DIVIDER - PREMIUM
   ================================================ */
.divider {
  display: flex;
  align-items: center;
  margin: 1.5rem 0 !important;
  gap: 1rem;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--login-border);
}

.divider span {
  font-size: 0.8125rem;
  color: var(--login-text-muted);
  font-weight: 500;
}

/* ================================================
   SIGNUP LINK - PREMIUM
   ================================================ */
.signup-link,
.register-link {
  text-align: center;
  margin-top: 1.5rem !important;
  font-size: 0.9375rem;
  color: var(--login-text-muted) !important;
}

.signup-link a,
.register-link a {
  color: var(--login-primary) !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  margin-left: 0.25rem;
  transition: opacity var(--login-transition);
}

.signup-link a:hover,
.register-link a:hover {
  text-decoration: underline !important;
}

/* ================================================
   ERROR MESSAGES - PREMIUM
   ================================================ */
.error-message,
.alert-error {
  background: rgba(239, 68, 68, 0.1) !important;
  border: 1px solid rgba(239, 68, 68, 0.2) !important;
  color: var(--login-error) !important;
  padding: 1rem !important;
  border-radius: var(--login-radius-sm) !important;
  margin-bottom: 1.25rem !important;
  font-size: 0.9375rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.success-message,
.alert-success {
  background: rgba(16, 185, 129, 0.1) !important;
  border: 1px solid rgba(16, 185, 129, 0.2) !important;
  color: #059669 !important;
  padding: 1rem !important;
  border-radius: var(--login-radius-sm) !important;
  margin-bottom: 1.25rem !important;
  font-size: 0.9375rem;
}

/* ================================================
   RESPONSIVE - TABLET (768px - 1024px)
   ================================================ */
@media (min-width: 768px) and (max-width: 1024px) {
  .login-wrapper {
    padding-top: 90px;
  }
  
  .auth-nav {
    height: 70px;
  }
  
  .login-container {
    max-width: 440px !important;
    padding: 2.25rem !important;
  }
}

/* ================================================
   RESPONSIVE - MOBILE (Below 768px)
   ================================================ */
@media (max-width: 767px) {
  body.login-page {
    padding: 0 !important;
  }
  
  .auth-nav {
    height: 64px;
  }
  
  .auth-nav-container {
    padding: 0 1rem;
  }
  
  .auth-nav-logo img {
    height: 32px;
  }
  
  .auth-nav-links {
    gap: 0.375rem;
  }
  
  .auth-nav-link {
    padding: 0.5rem 0.875rem;
    font-size: 0.875rem;
  }
  
  .login-wrapper {
    padding: 0.75rem;
    padding-top: 80px;
    padding-bottom: 1.5rem;
    min-height: 100vh;
    align-items: flex-start;
  }
  
  .login-container {
    max-width: 100% !important;
    padding: 1.5rem !important;
    border-radius: 20px !important;
    margin: 0;
  }
  
  .login-header {
    margin-bottom: 1.5rem !important;
  }
  
  .login-header .login-icon {
    width: 64px !important;
    height: 64px !important;
    border-radius: 18px !important;
    margin-bottom: 1rem;
  }
  
  .login-header .login-icon i {
    font-size: 1.5rem !important;
  }
  
  .login-header h1 {
    font-size: 1.5rem !important;
  }
  
  .login-header p {
    font-size: 0.875rem !important;
  }
  
  .form-group {
    margin-bottom: 1rem !important;
  }
  
  .form-group label {
    font-size: 0.875rem !important;
  }
  
  .form-group input {
    padding: 0.75rem 0.875rem 0.75rem 2.5rem !important;
    font-size: 16px !important; /* Prevent iOS zoom */
  }
  
  .form-options {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    margin-bottom: 1.25rem !important;
  }
  
  .remember-me {
    justify-content: flex-start;
  }
  
  .forgot-password {
    text-align: center;
  }
  
  .btn-login,
  .login-btn {
    padding: 0.875rem 1.25rem !important;
    font-size: 0.9375rem !important;
    min-height: 50px;
  }
  
  .signup-link,
  .register-link {
    font-size: 0.875rem;
    margin-top: 1.25rem !important;
  }
}

/* ================================================
   RESPONSIVE - SMALL MOBILE (Below 480px)
   ================================================ */
@media (max-width: 479px) {
  .auth-nav {
    height: 60px;
  }
  
  .auth-nav-logo img {
    height: 28px;
  }
  
  .auth-nav-link {
    padding: 0.375rem 0.625rem;
    font-size: 0.8125rem;
  }
  
  .login-wrapper {
    padding: 0.5rem;
    padding-top: 75px;
  }
  
  .login-container {
    padding: 1.25rem !important;
    border-radius: 18px !important;
  }
  
  .login-header .login-icon {
    width: 56px !important;
    height: 56px !important;
    border-radius: 16px !important;
  }
  
  .login-header .login-icon i {
    font-size: 1.375rem !important;
  }
  
  .login-header h1 {
    font-size: 1.375rem !important;
  }
  
  .login-header p {
    font-size: 0.8125rem !important;
  }
  
  .form-group input {
    padding: 0.625rem 0.75rem 0.625rem 2.25rem !important;
  }
  
  .input-wrapper i {
    left: 0.75rem;
    font-size: 0.9375rem;
  }
  
  .btn-login,
  .login-btn {
    padding: 0.75rem 1rem !important;
    font-size: 0.875rem !important;
    min-height: 48px;
  }
}

/* ================================================
   LANDSCAPE MOBILE
   ================================================ */
@media (max-width: 896px) and (orientation: landscape) {
  .login-wrapper {
    padding-top: 70px;
    padding-bottom: 1rem;
    align-items: center;
  }
  
  .auth-nav {
    height: 56px;
  }
  
  .login-container {
    max-width: 400px !important;
    padding: 1.25rem 1.5rem !important;
  }
  
  .login-header {
    margin-bottom: 1rem !important;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
  }
  
  .login-header .login-icon {
    margin: 0 !important;
    width: 52px !important;
    height: 52px !important;
    flex-shrink: 0;
  }
  
  .login-header h1 {
    font-size: 1.25rem !important;
    margin-bottom: 0.25rem;
  }
  
  .login-header p {
    font-size: 0.8125rem !important;
    margin-bottom: 0;
  }
  
  .form-group {
    margin-bottom: 0.75rem !important;
  }
  
  .form-options {
    margin-bottom: 0.75rem !important;
  }
}

/* ================================================
   ACCESSIBILITY
   ================================================ */
.form-group input:focus-visible,
.btn-login:focus-visible,
.login-btn:focus-visible,
.auth-nav-link:focus-visible,
.password-toggle:focus-visible {
  outline: 2px solid var(--login-primary);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ================================================
   DARK MODE SUPPORT
   ================================================ */
@media (prefers-color-scheme: dark) {
  /* Keep the premium dark design - already implemented */
}

/* ================================================
   PRINT STYLES
   ================================================ */
@media print {
  .auth-nav {
    display: none !important;
  }
  
  .login-container {
    box-shadow: none !important;
    border: 1px solid #ccc !important;
  }
}

/* ================================================
   HIDE DIGITAL ELEMENTS ON MOBILE FOR PERFORMANCE
   ================================================ */
@media (max-width: 768px) {
  .digital-element,
  .circuit-line {
    display: none !important;
  }
}


/* ========== login-page.css ========== */
/* login-page.css - Extracted from login.html */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Noto Sans Lao", "Phetsarath OT", "Saysettha OT", "Plus Jakarta Sans", sans-serif;
}

/* Better font rendering for Lao text */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  background: linear-gradient(
    135deg,
    #0A1628 0%,
    #0D2137 40%,
    #132A45 100%
  );
  min-height: 100vh;
  padding: 20px;
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  width: 100%;
  max-width: 100vw;
  padding-top: 70px; /* Account for fixed nav height */
}

.login-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 70px);
  padding: 20px;
  margin-top: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding-top: 20px;
}

/* Digital Lines Background */
body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: linear-gradient(
      90deg,
      transparent 98%,
      rgba(255, 255, 255, 0.08) 100%
    ),
    linear-gradient(0deg, transparent 98%, rgba(255, 255, 255, 0.08) 100%);
  background-size: 60px 60px;
  animation: gridMove 25s linear infinite;
}

body::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(
      circle at 20% 80%,
      rgba(255, 255, 255, 0.06) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(255, 255, 255, 0.06) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 40%,
      rgba(255, 255, 255, 0.04) 0%,
      transparent 50%
    );
  animation: pulse 6s ease-in-out infinite;
}

/* Floating Digital Elements */
.digital-element {
  position: absolute;
  color: rgba(255, 255, 255, 0.08);
  font-size: 1.3rem;
  animation: float 8s ease-in-out infinite;
  pointer-events: none;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.1));
}

.digital-element:nth-child(1) {
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.digital-element:nth-child(2) {
  top: 20%;
  right: 15%;
  animation-delay: 1s;
}

.digital-element:nth-child(3) {
  bottom: 30%;
  left: 20%;
  animation-delay: 2s;
}

.digital-element:nth-child(4) {
  bottom: 20%;
  right: 10%;
  animation-delay: 3s;
}

.digital-element:nth-child(5) {
  top: 50%;
  left: 5%;
  animation-delay: 4s;
}

.digital-element:nth-child(6) {
  top: 60%;
  right: 5%;
  animation-delay: 5s;
}

/* Circuit Lines */
.circuit-line {
  position: absolute;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.15),
    transparent
  );
  height: 1px;
  width: 120px;
  animation: circuitFlow 4s linear infinite;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.circuit-line:nth-child(7) {
  top: 15%;
  left: 0;
  transform: rotate(45deg);
  animation-delay: 0s;
}

.circuit-line:nth-child(8) {
  top: 25%;
  right: 0;
  transform: rotate(-45deg);
  animation-delay: 1s;
}

.circuit-line:nth-child(9) {
  bottom: 35%;
  left: 0;
  transform: rotate(30deg);
  animation-delay: 2s;
}

.circuit-line:nth-child(10) {
  bottom: 25%;
  right: 0;
  transform: rotate(-30deg);
  animation-delay: 3s;
}

/* Animations */
@keyframes gridMove {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(50px, 50px);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.6;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

@keyframes circuitFlow {
  0% {
    opacity: 0;
    transform: translateX(-100px) rotate(45deg);
  }
  50% {
    opacity: 1;
    transform: translateX(50px) rotate(45deg);
  }
  100% {
    opacity: 0;
    transform: translateX(200px) rotate(45deg);
  }
}

.login-container {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
  max-width: 400px;
  width: 100%;
  min-width: 0;
  animation: slideUp 0.8s ease-out;
  position: relative;
  z-index: 10;
  box-sizing: border-box;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-header {
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 50%, #3b82f6 100%);
  color: white !important;
  padding: 40px 25px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.login-header::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
  pointer-events: none;
  z-index: 1;
}

.login-header .header-title,
.login-header .header-subtitle {
  position: relative;
  z-index: 2;
}

.login-header::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: transparent;
  pointer-events: none;
}

.header-icon {
  background: rgba(255, 255, 255, 0.2);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  position: relative;
}

.header-icon i {
  font-size: 2.5rem;
  color: white;
}

.header-title {
  font-family: "Noto Sans Lao", "Phetsarath OT", "Saysettha OT", 'Outfit', 'Plus Jakarta Sans', sans-serif;
  font-size: 2.5rem !important;
  font-weight: 800 !important;
  margin-bottom: 16px;
  position: relative;
  letter-spacing: 0.03em;
  line-height: 1.2;
  color: #ffffff !important;
  text-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.6),
    0 2px 6px rgba(0, 0, 0, 0.7),
    0 0 2px rgba(0, 0, 0, 0.8);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
}

.header-title * {
  color: #ffffff !important;
}

.header-subtitle {
  font-family: "Noto Sans Lao", "Phetsarath OT", "Saysettha OT", 'Plus Jakarta Sans', sans-serif;
  font-size: 1.3rem !important;
  opacity: 1 !important;
  font-weight: 700 !important;
  position: relative;
  line-height: 1.5;
  color: #ffffff !important;
  text-shadow: 
    0 3px 12px rgba(0, 0, 0, 0.6),
    0 1px 4px rgba(0, 0, 0, 0.7),
    0 0 2px rgba(0, 0, 0, 0.8);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
}

.header-subtitle * {
  color: #ffffff !important;
}

.login-header h1,
.login-header p {
  color: #ffffff !important;
}

.login-header .header-title,
.login-header .header-subtitle {
  color: #ffffff !important;
}

.login-content {
  padding: 30px 25px;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #1e293b;
  font-size: 0.95rem;
  font-family: "Noto Sans Lao", "Phetsarath OT", "Saysettha OT", 'Plus Jakarta Sans', sans-serif;
  line-height: 1.5;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: "Noto Sans Lao", "Phetsarath OT", "Saysettha OT", 'Plus Jakarta Sans', sans-serif;
  transition: all 0.3s ease;
  background: #ffffff;
  color: #1e293b;
  line-height: 1.5;
}

.form-group input::placeholder {
  color: #94a3b8;
  opacity: 1;
  font-family: "Noto Sans Lao", "Phetsarath OT", "Saysettha OT", 'Plus Jakarta Sans', sans-serif;
}

.form-group input:focus {
  outline: none;
  border-color: #2563eb;
  background: white;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.password-field {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
  font-size: 1.1rem;
}

.login-button {
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 50%, #3b82f6 100%);
  color: white;
  border: none;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  font-family: "Noto Sans Lao", "Phetsarath OT", "Saysettha OT", 'Plus Jakarta Sans', sans-serif;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
  line-height: 1.5;
}

.login-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.7s;
}

.login-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(37, 99, 235, 0.4);
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #2563eb 100%);
}

.login-button:hover::before {
  left: 100%;
}

.login-button:active {
  transform: translateY(0);
}

.login-button:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.alert {
  padding: 14px 40px 14px 16px;
  border-radius: 10px;
  margin-bottom: 20px;
  display: none;
  font-weight: 500;
  align-items: center;
  position: relative;
  animation: slideDownFade 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.alert-success {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-error {
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.alert-warning {
  background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
  color: #f57c00;
  border: 1px solid #ffb74d;
  border-left: 4px solid #ff9800;
  box-shadow: 0 4px 12px rgba(255, 152, 0, 0.15);
}

.alert i {
  margin-right: 10px;
  font-size: 18px;
}

@keyframes slideDownFade {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Progress bar for auto-dismiss */
.alert::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: currentColor;
  opacity: 0.3;
  animation: progressBar 8s linear forwards;
}

@keyframes progressBar {
  from {
    width: 100%;
  }
  to {
    width: 0%;
  }
}

/* Close button for alerts */
.alert-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: inherit;
  opacity: 0.6;
  cursor: pointer;
  font-size: 18px;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
  line-height: 1;
}

.alert-close-btn:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.05);
}

.alert-warning .alert-close-btn:hover {
  background: rgba(245, 124, 0, 0.1);
}

.forgot-password {
  text-align: center;
  margin-bottom: 20px;
}

.forgot-password a {
  color: #2563eb;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: "Noto Sans Lao", "Phetsarath OT", "Saysettha OT", 'Plus Jakarta Sans', sans-serif;
  transition: color 0.2s ease;
}

.forgot-password a:hover {
  color: #1e40af;
  text-decoration: underline;
}

.signup-link {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
  color: #475569;
  font-size: 0.95rem;
  font-family: "Noto Sans Lao", "Phetsarath OT", "Saysettha OT", 'Plus Jakarta Sans', sans-serif;
  line-height: 1.6;
}

.signup-link a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
  margin-left: 5px;
  transition: color 0.2s ease;
}

.signup-link a:hover {
  color: #1e40af;
  text-decoration: underline;
}

.homepage-link {
  text-align: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

.homepage-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #475569;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  font-family: "Noto Sans Lao", "Phetsarath OT", "Saysettha OT", 'Plus Jakarta Sans', sans-serif;
  padding: 10px 20px;
  border-radius: 8px;
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  line-height: 1.5;
}

.homepage-button:hover {
  color: #1e40af;
  background: #f0f4ff;
  border-color: #c7d2fe;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.15);
  text-decoration: none;
}

.homepage-button:active {
  transform: translateY(0);
}

.loading-spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid #ffffff;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 10px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Responsive Design */
/* Large Desktop */
@media (min-width: 1200px) {
  .login-container {
    max-width: 380px;
    margin: 2rem auto;
  }

  .login-header {
    padding: 1.75rem 1.5rem;
  }

  .login-content {
    padding: 1.75rem 1.5rem;
  }

  .header-title {
    font-size: 1.5rem;
  }

  .header-subtitle {
    font-size: 0.9rem;
  }

  .form-group input {
    padding: 0.8rem 0.95rem;
    font-size: 0.9rem;
  }

  .login-button {
    padding: 0.8rem 1.25rem;
    font-size: 0.9rem;
  }
}

/* Scale down for high DPI displays to prevent zoom appearance */
@media (min-width: 1200px) and ((-webkit-min-device-pixel-ratio: 1.25) or (min-resolution: 120dpi)) {
  html {
    font-size: 14px;
  }
  
  .login-container {
    max-width: 360px !important;
  }
  
  .header-title {
    font-size: 1.4rem !important;
  }
  
  .login-header {
    padding: 1.5rem 1.25rem !important;
  }
  
  .login-content {
    padding: 1.5rem 1.25rem !important;
  }
  
  .form-group input {
    padding: 0.75rem 0.9rem !important;
    font-size: 0.85rem !important;
  }
  
  .login-button {
    padding: 0.75rem 1.15rem !important;
    font-size: 0.85rem !important;
  }
}

/* Desktop */
@media (max-width: 1199px) and (min-width: 992px) {
  .login-container {
    max-width: 450px;
    margin: 1.5rem auto;
  }
}

/* Tablet */
@media (max-width: 991px) and (min-width: 768px) {
  .login-container {
    max-width: 400px;
    margin: 1rem;
  }

  .login-header {
    padding: 2rem 1.5rem;
  }

  .login-content {
    padding: 2rem 1.5rem;
  }

  .header-title {
    font-size: 2rem;
  }

  .form-group input {
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
  }

  .login-button {
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
  }
}

/* Mobile Large */
@media (max-width: 767px) and (min-width: 576px) {
  .login-container {
    max-width: 100%;
    margin: 0.5rem;
    border-radius: 15px;
  }

  .login-header {
    padding: 1.5rem;
  }

  .login-content {
    padding: 1.5rem;
  }

  .header-title {
    font-size: 1.8rem;
  }

  .header-subtitle {
    font-size: 0.9rem;
  }

  .form-group {
    margin-bottom: 1.2rem;
  }

  .form-group label {
    font-size: 0.85rem;
  }

  .form-group input {
    padding: 0.7rem 0.8rem;
    font-size: 0.85rem;
    border-radius: 10px;
  }

  .login-button {
    padding: 0.7rem 1.2rem;
    font-size: 0.85rem;
  }

  .forgot-password a {
    font-size: 0.85rem;
  }
}

/* Mobile Small */
@media (max-width: 575px) {
  html {
    font-size: 14px;
  }

  body {
    padding: 10px;
    padding-top: 60px;
  }

  .login-wrapper {
    padding: 10px;
    min-height: calc(100vh - 60px);
  }

  .login-container {
    max-width: 100%;
    margin: 0;
    border-radius: 12px;
  }

  .login-header {
    padding: 1rem;
  }

  .login-content {
    padding: 1rem;
  }

  .header-title {
    font-size: 1.6rem;
    margin-bottom: 0.3rem;
  }

  .header-subtitle {
    font-size: 0.85rem;
  }

  .form-group {
    margin-bottom: 1rem;
  }

  .form-group label {
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
  }

  .form-group input {
    padding: 0.6rem 0.7rem;
    font-size: 0.8rem;
    border-radius: 8px;
  }

  .login-button {
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
    width: 100%;
  }

  .forgot-password a {
    font-size: 0.8rem;
  }

  .homepage-button {
    font-size: 0.85rem;
    padding: 8px 16px;
  }

  .alert {
    padding: 0.8rem;
    font-size: 0.8rem;
    margin-bottom: 1rem;
  }
}

/* Auth Navigation Styles */
.auth-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  z-index: 1000;
  padding: 12px 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.auth-nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

.auth-nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #1e40af;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.25rem;
  font-family: "Noto Sans Lao", "Phetsarath OT", "Saysettha OT", 'Plus Jakarta Sans', sans-serif;
  transition: opacity 0.2s ease;
}

.auth-nav-logo:hover {
  opacity: 0.8;
}

.auth-nav-logo i {
  font-size: 1.5rem;
}

.auth-nav-logo img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.auth-nav-links {
  display: flex;
  gap: 12px;
  align-items: center;
}

.auth-nav-link {
  color: #475569;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  font-family: "Noto Sans Lao", "Phetsarath OT", "Saysettha OT", 'Plus Jakarta Sans', sans-serif;
  padding: 10px 18px;
  border-radius: 10px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.5;
}

.auth-nav-link i {
  font-size: 0.875rem;
  transition: transform 0.3s ease;
}

.auth-nav-link:hover i {
  transform: scale(1.1);
}

.auth-nav-link:hover {
  color: #2563eb;
  background: rgba(37, 99, 235, 0.08);
}

.auth-nav-link.active {
  color: #ffffff !important;
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 50%, #3b82f6 100%) !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  font-weight: 600;
}

.auth-nav-link.active i {
  color: #ffffff !important;
  transform: scale(1.1);
}

/* Extra Small Mobile */
@media (max-width: 375px) {
  html {
    font-size: 14px;
  }

  body {
    padding: 8px;
    padding-top: 60px;
  }

  .login-wrapper {
    padding: 8px;
  }

  .login-container {
    padding: 0.8rem;
    border-radius: 10px;
  }

  .login-header {
    padding: 0.8rem;
  }

  .login-content {
    padding: 0.8rem;
  }

  .header-title {
    font-size: 1.4rem;
  }

  .header-subtitle {
    font-size: 0.8rem;
  }

  .form-group input {
    padding: 0.5rem 0.6rem;
    font-size: 0.75rem;
  }

  .login-button {
    padding: 0.5rem 0.8rem;
    font-size: 0.75rem;
  }

  .auth-nav-container {
    padding: 0 15px;
  }

  .auth-nav-logo {
    font-size: 1rem;
  }

  .auth-nav-logo i {
    font-size: 1.3rem;
  }

  .auth-nav-logo img {
    height: 28px;
  }

  .auth-nav-links {
    gap: 10px;
  }

  .auth-nav-link {
    font-size: 0.8rem;
    padding: 6px 10px;
  }

  .auth-nav {
    padding: 8px 0;
  }

  .auth-nav-container {
    padding: 0 10px;
  }
}

/* Prevent text size adjustment on iOS */
@supports (-webkit-touch-callout: none) {
  html {
    -webkit-text-size-adjust: 100%;
  }
}

