/* Reset Password Page - Additional Styles */
/* ใช้ร่วมกับ custom.css ที่มี #login-page และ .login-box อยู่แล้ว */

/* เพิ่มความกว้างให้ login-box เมื่ออยู่ในหน้า reset password */
#login-page .login-box {
  max-width: 420px;
  width: 100%;
}

/* Subtitle และ Description */
.login-box .subtitle {
  color: #666;
  font-size: 16px;
  margin-bottom: 0.5rem;
}

.login-box .description {
  color: #999;
  font-size: 14px;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

/* Form Group - ปรับให้เข้ากับ reset password form */
.login-box .form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.login-box .form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #333;
  font-size: 14px;
}

.login-box .form-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.login-box .form-group input:focus {
  border-color: #282b85;
  outline: none;
  box-shadow: 0 0 0 3px rgba(40, 43, 133, 0.1);
}

.login-box .form-group input.is-invalid {
  border-color: #e60303;
}

.login-box .form-group input.is-invalid:focus {
  box-shadow: 0 0 0 3px rgba(230, 3, 3, 0.1);
}

/* Text Danger */
.text-danger {
  color: #e60303;
  font-size: 13px;
  display: block;
  margin-top: 0.4rem;
}

/* Toggle Password Icon */
.login-box .form-group span[onclick*="togglePassword"] {
  transition: color 0.3s ease;
  color: #999;
}

.login-box .form-group span[onclick*="togglePassword"]:hover {
  color: #282b85;
}

.login-box .form-group span[onclick*="togglePassword"] i {
  font-size: 16px;
}

/* Reset Button */
#reset-btn {
  width: 100%;
  background: linear-gradient(135deg, #e60303 0%, #b80202 100%);
  color: #fff;
  border: none;
  padding: 0.9rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(230, 3, 3, 0.3);
}

#reset-btn:hover {
  background: linear-gradient(135deg, #c20202 0%, #9a0101 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(230, 3, 3, 0.4);
}

#reset-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(230, 3, 3, 0.3);
}

#reset-btn i {
  margin-right: 0.5rem;
}

/* Back to Login - ใช้ร่วมกับ .forgot ที่มีอยู่ */
.back-to-login {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e0e0e0;
  font-size: 14px;
}

.back-to-login a {
  color: #282b85;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.back-to-login a:hover {
  color: #1a1d5a;
  text-decoration: underline;
}

.back-to-login a i {
  font-size: 12px;
}

/* Animation - slide in effect */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#login-page .login-box {
  animation: slideIn 0.4s ease-out;
}

/* Responsive Design */
@media (max-width: 480px) {
  .login-box {
    padding: 2rem 1.5rem;
  }

  .login-box h2 {
    font-size: 24px;
  }

  .login-box .subtitle {
    font-size: 14px;
  }

  .login-box .description {
    font-size: 13px;
  }
}

/* Modal Close Button (X) */
.modal-close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none !important;
  border: none !important;
  font-size: 28px;
  color: #999;
  cursor: pointer;
  line-height: 1;
  padding: 0 !important;
  width: 30px;
  height: 30px;
  transition: color 0.2s ease, transform 0.2s ease;


}

.btn-close {

  position: absolute;
  top: 10px;
  right: 15px;
  background: none !important;
  border: none !important;
  font-size: 28px;
  padding: 0 !important;
  width: 30px;
  height: 30px;
  transition: color 0.2s ease, transform 0.2s ease;

  float: right;
  color: #282b85;
}



.modal-close-btn:hover {
  color: #e60303;
  transform: rotate(90deg);
}

.popup-content-relative {
  position: relative;
}