body {
  font-family: "Noto Sans Thai", "Noto Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  color: #21272a;
  height: 100dvh;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.main-content {
  height: 100dvh;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-container {
  width: 100%;
  max-width: 500px;
  padding: 20px;
}

.login-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Header Section */
.header-section {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
}

.logo-container {
  width: 100%;
  margin: 0 auto;
}

.university-logo {
  width: 100%;
  margin: 0 auto;
}

.university-text {
  display: flex;
  flex-direction: column;
}

.thai-name {
  font-size: 24px;
  font-weight: 700;
  color: #d32f2f;
  margin-bottom: 4px;
}

.english-name {
  font-size: 18px;
  font-weight: 700;
  color: #d32f2f;
  text-transform: uppercase;
}

/* System Title */
.system-title {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.title-line {
  flex: 1;
  height: 1px;
  background: #666;
}

.title-text {
  margin: 0 20px;
  font-size: 18px;
  font-weight: 500;
  color: #333;
  text-align: center;
}

/* Form Elements */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.input-group {
  position: relative;
}

.input-group input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  outline: none;
  transition: border-color 0.3s;
  box-sizing: border-box;
}

.input-group input:focus {
  border-color: #d32f2f;
}

.input-group input::placeholder {
  color: #999;
}

.error-message {
  color: #d32f2f;
  font-size: 14px;
  text-align: center;
  min-height: 20px;
}

/* Buttons Section */
.buttons-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.login-btn {
  background: #d32f2f;
  color: white;
  border: none;
  padding: 14px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.3s;
}

.login-btn:hover {
  background: #b71c1c;
}

.secondary-buttons {
  display: flex;
  gap: 10px;
}

.register-btn {
  flex: 1;
  background: #ffc107;
  color: #000;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.register-btn:hover {
  background: #fdd835;
}

.forgot-btn {
  flex: 1;
  background: #e0e0e0;
  color: #000;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.forgot-btn:hover {
  background: #d5d5d5;
}

/* Responsive Design */
@media (max-width: 600px) {
  .login-container {
    padding: 10px;
  }

  .login-card {
    padding: 30px 20px;
  }

  .header-section {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .secondary-buttons {
    flex-direction: column;
  }
}

/* Keep existing styles for other pages */
.layout-login {
  height: 100dvh;
  display: flex;
}

.layout-login > * {
  width: 100%;
}

.bg-login {
  background-image: url("/images/bg-login.png");
  width: 100%;
  object-fit: contain;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: bottom;
  margin-bottom: 50px;
}

.bg-login > .text-bg > :last-child {
  font-size: 34px;
}

.powered-by {
  width: 50%;
  height: 50px;
  position: fixed;
  bottom: 0;
  right: 10px;
  font-size: 14px;
  font-weight: 400;
  color: #667085;
  display: flex;
  align-items: center;
  justify-content: end;
}

.login-box {
  max-width: 768px;
  min-width: 600px;
  margin: 0 auto;
  background: #fff;
  padding: 40px;
  border-radius: 16px;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
  height: 100%;
  margin-top: 150px;
}

.header-group {
  font-weight: 700;
  font-size: 42px;
}

.group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.group > button {
  padding: 10px;
  font-size: 16px;
  font-weight: 500;
  font-family: "Noto Sans Thai", "Noto Sans", sans-serif;
}

.group h1 {
  font-weight: 400;
  font-size: 16px;
}

input {
  outline: none;
  border: 1px solid #c1c7cd;
  line-height: 22.4px;
  padding: 10px 40px 10px 20px;
  width: calc(100% - 60px);
  border-radius: 8px;
  font-size: 16px;
}

.password-input {
  position: relative;
  width: 100%;
}

.toggle {
  position: absolute;
  top: 15px;
  right: 10px;
  cursor: pointer;
}

.error-text {
  font-size: 14px;
  color: red;
  margin: 15px 0;
}

button {
  width: 100%;
  outline: none;
  background: #3699ff;
  color: #fff;
  border: 1px solid;
  font-size: 16px;
  line-height: 22.4px;
  padding: 6px 13px;
  cursor: pointer;
  border-radius: 8px;
}

button:hover {
  background: #0980f7;
}

.support {
  margin: 30px 0 20px;
}

.text-bg {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  font-size: 96px;
  font-weight: 500;
  color: #001e6f;
}

.btn-register {
  padding: 10px;
  font-size: 16px;
  font-weight: 500;
  font-family: "Noto Sans Thai", "Noto Sans", sans-serif;
  background: #006838;
}

.btn-register:hover {
  background: #008040;
}

.btn-register a {
  text-decoration: none;
  color: #fff;
}

.btn-register a:hover {
  text-decoration: underline;
}

.logo-group {
  margin-top: 80px;
  display: flex;
  justify-items: center;
  justify-content: center;
  gap: 20px;
}

.text-end {
  text-align: end;
}

.my-2 {
  margin: 16px 0px 0px;
}

.radio-group {
  display: flex;
  gap: 20px;
  margin-top: 5px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 400;
  color: #21272a;
}

.radio-label input[type="radio"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  margin: 0;
  padding: 0;
  accent-color: #d32f2f;
}

.radio-label span {
  user-select: none;
}
