/* ---------- RESET ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Kanit', sans-serif;
  background: #f8f8f8;
  color: #333;
  text-align: center;
  line-height: 1.6;
}

/* ---------- WRAPPER (CENTER LOGIN CARD) ---------- */
.wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

/* ถ้ามี Navbar ด้านบนให้เว้นระยะ */
body > .wrapper {
  margin-top: 80px;
  min-height: calc(100vh - 80px);
}

/* ---------- MAIN LAYOUT ---------- */
.login-container {
  display: flex;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 6px 25px rgba(0,0,0,0.08);
  overflow: hidden;
  max-width: 900px;
  width: 95%;
  margin-top: -200px; /* ⬆️ ดันขึ้น */
}


/* ---------- LEFT IMAGE ---------- */
.login-left {
  flex: 1;
  background: linear-gradient(135deg, #e53935, #c62828);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
}

.login-left img {
  width: 65%;
  max-width: 280px;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.2));
}

/* ---------- RIGHT FORM ---------- */
.login-right {
  flex: 1;
  padding: 60px 50px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-box {
  width: 100%;
  max-width: 320px;
  text-align: center;
}

.login-box h2 {
  color: #e53935;
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 1.8rem;
}

.login-box .subtitle {
  color: #777;
  font-weight: 300;
  margin-bottom: 25px;
}

/* ---------- INPUT ---------- */
.input-group {
  display: flex;
  align-items: center;
  background: #f4f4f4;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  transition: 0.2s;
}

.input-group:focus-within {
  border-color: #e53935;
  background: #fff;
}

.input-group i {
  color: #999;
  margin-right: 10px;
  font-size: 1.1rem;
}

.input-group input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font-size: 1rem;
  font-family: 'Kanit', sans-serif;
  color: #333;
}

/* ---------- BUTTON ---------- */
.btn-login {
  width: 100%;
  background: #e53935;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
  font-family: 'Kanit', sans-serif;
}

.btn-login:hover {
  background: #c62828;
}

/* ---------- LINKS ---------- */
.links {
  margin-top: 10px;
}

.links a {
  font-size: 0.9rem;
  color: #888;
  text-decoration: none;
}

.links a:hover {
  text-decoration: underline;
}

/* ---------- SWITCH ---------- */
.switch-text {
  margin-top: 20px;
  font-size: 0.9rem;
  color: #666;
}

.switch-text a {
  color: #e53935;
  text-decoration: none;
}

.switch-text a:hover {
  text-decoration: underline;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  .login-container {
    flex-direction: column;
  }

  .login-left {
    padding: 30px;
  }

  .login-left img {
    width: 45%;
  }

  .login-right {
    padding: 40px 25px;
  }
}
