﻿@charset "utf-8";
/* ============================
   FONT & BASE
============================ */
@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@400;600;700&display=swap');

body.login-bg {
  margin: 0;
  font-family: "Kanit", sans-serif;
  background: linear-gradient(135deg, #f1faee, #a8dadc);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  color: #1d3557;
}

/* ============================
   LOGIN BOX
============================ */
.login-box {
  background: #fff;
  padding: 40px 32px;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  width: 100%;
  max-width: 400px;
  text-align: center;
  animation: fadeIn 0.6s ease;
}

.login-logo {
  width: 80px;
  margin-bottom: 15px;
}

.login-box h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 25px;
  color: #1d3557;
}

/* ============================
   FORM ELEMENTS
============================ */
.login-box label {
  display: block;
  text-align: left;
  font-size: 15px;
  margin-bottom: 6px;
  color: #457b9d;
  font-weight: 600;
}

.login-box select,
.login-box input {
  width: 100%;
  padding: 12px;
  margin-bottom: 18px;
  border: 2px solid #ccc;
  border-radius: 12px;
  font-size: 16px;
  transition: 0.3s;
  font-family: "Kanit", sans-serif;
}

.login-box select:focus,
.login-box input:focus {
  border-color: #457b9d;
  outline: none;
  box-shadow: 0 0 0 3px rgba(69,123,157,0.25);
}

/* ============================
   BUTTON
============================ */
.btn {
  width: 100%;
  background: linear-gradient(135deg, #a8dadc, #457b9d);
  color: #fff;
  padding: 12px;
  border: none;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn:hover {
  background: linear-gradient(135deg, #457b9d, #1d3557);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* ============================
   ANIMATION
============================ */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================
   RESPONSIVE
============================ */
@media(max-width:480px){
  .login-box {
    padding: 28px 20px;
    border-radius: 16px;
  }
  .login-box h2 { font-size: 20px; }
}
/* ปุ่ม */
.btn {
  width: 100%;
  background: linear-gradient(135deg, #a8dadc, #457b9d);
  color: #fff;
  padding: 12px;
  border: none;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 600;
  font-family: 'Kanit', sans-serif;   /* บังคับใช้ฟอนต์ */
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn:hover {
  background: linear-gradient(135deg, #457b9d, #1d3557);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* Input fields */
.login-box select,
.login-box input {
  width: 100%;
  max-width: 100%;
  padding: 12px;
  margin-bottom: 18px;
  border: 2px solid #ccc;
  border-radius: 12px;
  font-size: 16px;
  font-family: 'Kanit', sans-serif;
  box-sizing: border-box;   /* ป้องกันล้น */
}
