
    @import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Lao:wght@400;500;600;700&display=swap');
    
    :root {
      --primary-color: #D4A762;
      --primary-dark: #B08542;
      --background-color: #F9F5F0;
      --text-color: #333333;
    }
    
    body {
      font-family: 'Noto Sans Lao', sans-serif;
      -webkit-tap-highlight-color: transparent; /* ลบไฮไลท์สีฟ้าเมื่อแตะบนมือถือ */
    }
    
    .login-container {
      background-image: url('../assets/images/thai-pattern.svg');
      background-color: var(--background-color);
      background-repeat: repeat;
      background-size: 200px;
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 1rem;
    }
    
    .login-card {
      width: 100%;
      max-width: 420px;
      margin: 0 auto;
      border-radius: 16px;
      overflow: hidden;
      box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
      animation: fadeInUp 0.5s ease-out forwards;
    }
    
    .login-header {
      position: relative;
      padding: 2rem 1.5rem;
      background: linear-gradient(135deg, #F5EFE6, #E9DFC7);
      text-align: center;
    }
    
    .login-header::before {
      content: "";
      position: absolute;
      top: -50px;
      left: -50px;
      width: 200px;
      height: 200px;
      background-image: url('../assets/images/temple-pattern-light.svg');
      background-size: cover;
      background-position: center;
      opacity: 0.1;
      z-index: 0;
    }
    
    .form-container {
      padding: 1.5rem;
    }
    
    /* Input styling */
    .input-group {
      position: relative;
      margin-bottom: 1.25rem;
    }
    
    .input-icon-wrapper {
      position: absolute;
      left: 0;
      top: 50%;
      transform: translateY(-50%);
      margin-left: 12px;
      z-index: 2;
    }
    
    .icon-circle {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      background: linear-gradient(135deg, #F5EFE6, #E9DFC7);
      color: var(--primary-dark);
      transition: all 0.3s ease;
    }
    
    /* แก้ไขส่วนของ input field */
    .input-field {
      width: 100%;
      padding: 0.875rem 1rem 0.875rem 58px; /* ปรับ padding ให้มีค่าคงที่ */
      border: 2px solid rgba(212, 167, 98, 0.2);
      border-radius: 0.75rem;
      font-size: 1rem;
      line-height: 1.5;
      transition: all 0.3s ease;
      background-color: #fff;
      outline: none;
      -webkit-appearance: none;
    }
    
    .input-field:focus {
      border-color: var(--primary-color);
      box-shadow: 0 0 0 3px rgba(212, 167, 98, 0.15);
    }
    
    /* ปุ่ม toggle password */
    .toggle-password {
      position: absolute;
      right: 12px;
      top: 50%;
      transform: translateY(-50%);
      color: var(--primary-dark);
      padding: 8px;
      border-radius: 50%;
      background-color: transparent;
      z-index: 2;
    }
    
    /* ปุ่ม login */
    .btn-login {
      width: 100%;
      padding: 0.875rem 1.5rem;
      border-radius: 0.75rem;
      font-weight: 600;
      font-size: 1rem;
      background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
      color: white;
      box-shadow: 0 4px 12px rgba(212, 167, 98, 0.3);
      transition: all 0.3s ease;
      outline: none;
      margin-top: 0.75rem;
      -webkit-appearance: none;
    }
    
    .btn-login:active {
      transform: translateY(1px);
      box-shadow: 0 2px 8px rgba(212, 167, 98, 0.25);
    }
    
    /* ปรับ checkbox สำหรับมือถือ */
    .checkbox-container {
      display: flex;
      align-items: center;
    }
    
    .checkbox-container input[type="checkbox"] {
      height: 18px;
      width: 18px;
      margin-right: 8px;
      accent-color: var(--primary-color);
    }
    
    /* ปรับปรุงลิงก์ */
    a {
      color: var(--primary-dark);
      text-decoration: none;
      transition: color 0.2s;
    }
    
    a:active {
      color: var(--primary-color);
      transform: scale(0.98);
    }
    
    /* ข้อความแสดงข้อผิดพลาด */
    .error-container {
      background-color: rgba(254, 226, 226, 1);
      border-left: 4px solid rgba(239, 68, 68, 1);
      padding: 1rem;
      margin-bottom: 1.5rem;
      border-radius: 0.375rem;
      display: flex;
      align-items: flex-start;
    }
    
    .error-icon {
      color: rgba(239, 68, 68, 1);
      margin-right: 0.75rem;
      flex-shrink: 0;
    }
    
    .error-message {
      color: rgba(185, 28, 28, 1);
      font-size: 0.875rem;
    }
    
    /* เพิ่ม media query สำหรับหน้าจอมือถือ */
    @media screen and (max-width: 480px) {
      .login-card {
        border-radius: 12px;
      }
      
      .login-header {
        padding: 1.75rem 1rem;
      }
      
      .form-container {
        padding: 1.25rem;
      }
      
      .input-field {
        padding: 0.75rem 1rem 0.75rem 52px;
        font-size: 0.95rem;
      }
      
      .icon-circle {
        width: 32px;
        height: 32px;
      }
      
      .input-icon-wrapper {
        margin-left: 10px;
      }
      
      .btn-login {
        padding: 0.75rem 1rem;
      }
      
      .temple-icon .icon-circle {
        width: 56px !important; 
        height: 56px !important;
      }
    }
    
    /* Animation */
    @keyframes fadeInUp {
      from {
        opacity: 0;
        transform: translateY(20px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }
    
    /* Ripple effect for buttons */
    .ripple {
      position: relative;
      overflow: hidden;
    }
    
    .ripple:after {
      content: "";
      display: block;
      position: absolute;
      width: 100%;
      height: 100%;
      top: 0;
      left: 0;
      pointer-events: none;
      background-image: radial-gradient(circle, #fff 10%, transparent 10.01%);
      background-repeat: no-repeat;
      background-position: 50%;
      transform: scale(10, 10);
      opacity: 0;
      transition: transform .5s, opacity 1s;
    }
    
    .ripple:active:after {
      transform: scale(0, 0);
      opacity: .3;
      transition: 0s;
    }
