@import url("https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  /* font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; */
  font-family: "Kanit", sans-serif;
  min-height: 100vh;
  /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
  /* background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 100%); */
  background: linear-gradient(to bottom right, #fafafa 0%, #e9d5ff 40%, #7c3aed 100%);
  position: relative;
}

@media (min-width: 769px) {
  body {
    height: 100vh;
    overflow: hidden;
  }
}

.login-container {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
}

@media (min-width: 769px) {
  .login-container {
    height: 100vh;
    overflow: hidden;
  }
}

.login-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 970px;
  max-height: 97vh;
  width: 100%;
  display: flex;
  flex-direction: row;
}

.login-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
}

.image-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: white;
}

.image-content i {
  font-size: 70px;
  margin-bottom: 20px;
  opacity: 0.9;
}

.image-content h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 12px;
}

.image-content p {
  font-size: 14px;
  opacity: 0.9;
  line-height: 1.5;
}

.login-form-section {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.form-header {
  text-align: center;
  margin-bottom: 25px;
}

.form-header h3 {
  font-size: 24px;
  font-weight: 700;
  color: #333;
  margin-bottom: 8px;
}

.form-header p {
  color: #666;
  font-size: 13px;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
  font-size: 14px;
}

.form-control {
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 15px;
  transition: all 0.3s;
}

.form-control:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
}

.input-group-text {
  background: #f8f9fa;
  border: 2px solid #e0e0e0;
  border-right: none;
  border-radius: 10px 0 0 10px;
}

.input-group .form-control {
  border-left: none;
  border-radius: 0 10px 10px 0;
}

.btn-login {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 10px;
  color: white;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s;
  margin-top: 10px;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.form-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  flex-wrap: wrap;
  gap: 10px;
}

.form-links a {
  color: #667eea;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s;
}

.form-links a:hover {
  color: #764ba2;
  text-decoration: underline;
}

.divider {
  text-align: center;
  margin: 20px 0;
  position: relative;
}

.divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #e0e0e0;
}

.divider span {
  background: white;
  padding: 0 15px;
  color: #999;
  font-size: 14px;
  position: relative;
  z-index: 1;
}

.alternative-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-outline-custom {
  width: 100%;
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  background: white;
  color: #333;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-outline-custom:hover {
  border-color: #667eea;
  color: #667eea;
  background: rgba(102, 126, 234, 0.05);
}

.back-home {
  text-align: center;
  margin-top: 15px;
}

.back-home a {
  color: #999;
  text-decoration: none;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.back-home a:hover {
  color: #667eea;
}

@media (max-width: 768px) {
  .login-card {
    flex-direction: column;
    max-height: none;
  }

  .login-image {
    padding: 30px 20px;
    min-height: 200px;
  }

  .image-content i {
    font-size: 50px;
    margin-bottom: 15px;
  }

  .image-content h2 {
    font-size: 20px;
    margin-bottom: 8px;
  }

  .image-content p {
    font-size: 13px;
  }

  .login-form-section {
    padding: 30px 25px;
  }

  .form-header {
    margin-bottom: 20px;
  }

  .form-header h3 {
    font-size: 22px;
  }

  .form-header p {
    font-size: 12px;
  }

  .form-group {
    margin-bottom: 15px;
  }

  .form-control {
    padding: 10px 12px;
    font-size: 14px;
  }

  .btn-login {
    padding: 12px;
    font-size: 15px;
  }

  .divider {
    margin: 15px 0;
  }

  .btn-outline-custom {
    padding: 10px;
    font-size: 13px;
  }

  .form-links {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .back-home {
    margin-top: 12px;
  }
}

@media (max-width: 480px) {
  .login-container {
    padding: 10px;
  }

  .login-form-section {
    padding: 30px 20px;
  }

  .form-header h3 {
    font-size: 22px;
  }
}
