/* Container chính */
#custom-login-container,
#custom-register-container {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgb(0 0 0 / 0%);
}

/* Form chung */
div#register-form,
.custom-login-modal {
  background-color: #fff;
  border-radius: 8px;
  padding: 20px;
  width: 100%;
  max-width: 400px;
  font-family: Helvetica, Arial, sans-serif;
}

/* Header */
#register-form h2,
.custom-login-modal h2 {
  text-align: center;
  font-size: 24px;
  margin-bottom: 20px;
}

/* Inputs */
#register-form input,
input#confirm_password,
input#new_password,
input#old_password {
  width: 95%;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 14px;
}

/* Buttons */
.register-btn,
.login-btn,
.google-btn {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin: 10px 0;
  font-weight: bold;
}

.register-btn,
.login-btn {
  position: relative;
  background: linear-gradient(
    135deg,
    #5b92af,
    #3d5f73
  ); /* Cùng style với các nút cũ */
  color: #fff;
  border: none;
  transition:
    background 0.3s ease,
    transform 0.2s ease,
    box-shadow 0.3s ease;
  overflow: hidden;
  box-shadow:
    inset 0 3px 5px rgba(255, 255, 255, 0.3),
    0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Hiệu ứng bóng loáng chỉ chiếm 1/3 diện tích nút */
.register-btn::after,
.login-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 135%; /* Chỉ chiếm 1/3 chiều rộng */
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transform: skewX(-30deg);
  transition: all 0.5s ease-in-out;
}

/* Hover làm nút sáng hơn + ánh sáng lướt qua */
.register-btn:hover,
.login-btn:hover {
  background: linear-gradient(
    135deg,
    #6aa5c5,
    #4a6f84
  ); /* Sáng hơn khi hover */
  box-shadow:
    inset 0 5px 8px rgba(255, 255, 255, 0.4),
    0 4px 6px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

.register-btn:hover::after,
.login-btn:hover::after {
  left: 100%;
}

button#google-register {
  width: 100%;
}

.google-btn {
  width: 94%;
  background-color: #ababab;
  color: #fff !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.google-btn img {
  margin-right: 8px;
  width: 20px;
  height: 20px;
}

.google-btn:hover {
  background-color: #8d8c8c;
  color: #fff !important;
}

/* Remember Me & Forgot Password */
.remember-forgot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.forgot-password-link,
.register-link a {
  text-decoration: none;
  color: #007bff;
}

.forgot-password-link:hover,
.register-link a:hover {
  text-decoration: underline;
}

/* Divider */
.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 15px 0;
}

.divider span {
  flex-grow: 1;
  border-bottom: 1px solid #ccc;
  margin: 0 10px;
}

/* Register Link */
.register-link,
.login-link {
  font-size: 14px;
  margin-top: 15px;
  text-align: center;
}

.register-link a,
.login-link a {
  text-decoration: none;
  color: #007bff;
  font-weight: bold;
}

/* Container chính */
#custom-user-info {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  /*width: 100%;*/
  max-width: 320px;
  margin: 20px auto;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

/* Card thông tin người dùng */
.custom-card {
  display: flex;
  flex-direction: column;
  align-items: center; /* Đảm bảo mọi thứ căn giữa */
  width: 100%;
}

/* Avatar */
.custom-avatar {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.custom-avatar img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 2px solid #ddd;
  object-fit: cover; /* Đảm bảo hình ảnh không bị méo */
}

/* Thông tin người dùng */
.custom-details {
  text-align: center;
  margin-bottom: 20px;
}

.custom-details p {
  margin: 5px 0;
  color: #555;
  font-size: 14px;
}

.custom-details h3 {
  margin: 5px 0;
  color: #333;
  font-size: 18px;
}

/* Hành động */
.custom-actions {
  display: flex;
  justify-content: center;
  gap: 10px; /* Khoảng cách giữa các nút */
}

.custom-btn, .my-account {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
  color: #000000;
  border-radius: 5px;
  cursor: pointer;
  text-align: center;
  background-color: 4a7d91;
}

.custom-primary {
  background-color: #e3e3e3;
}

.custom-secondary {
  background-color: #e3e3e3;
}

.custom-primary:hover {
  background-color: #afafaf;
}

.custom-secondary:hover {
  background-color: #afafaf;
}

/* Form */
#lostpassword-form {
  display: flex;
  flex-direction: column; /* Xếp chồng các thành phần theo chiều dọc */
  align-items: center; /* Căn giữa các thành phần */
  gap: 15px; /* Khoảng cách giữa các thành phần */
  margin-bottom: 20px;
}

.custom-link {
  margin: 0 10px;
  font-size: 14px;
  color: #007bff;
  text-decoration: none;
}

.custom-link:hover {
  text-decoration: underline;
}

/* Thông báo */
.success-msg {
  color: green;
  font-size: 14px;
  margin-top: 10px;
}

.error-msg {
  color: red;
  font-size: 14px;
  margin-top: 10px;
}

.success-msg {
  background-color: #d4edda;
  color: #155724;
  padding: 10px;
  border: 1px solid #c3e6cb;
  border-radius: 5px;
  margin-bottom: 20px;
  font-size: 14px;
}
.error-msg {
  background-color: #f8d7da;
  color: #721c24;
  padding: 10px;
  border: 1px solid #f5c6cb;
  border-radius: 5px;
  margin-bottom: 20px;
  font-size: 14px;
}
/* General styling for response messages */
#login-response p,
#register-response p {
  font-size: 14px;
  margin: 0;
  /*padding: 5px 0;*/
}

/* Error messages */
#login-response p.error,
#register-response p.error {
  color: red;
}

/* Success messages */
#login-response p.success,
#register-response p.success {
  color: green;
}

/* Optional: Add background and border for better visibility */
#login-response p,
#register-response p {
  border: 1px solid transparent;
  border-radius: 4px;
  /*padding: 8px;*/
}

#login-response p.error,
#register-response p.error {
  background-color: #ffe5e5;
  border-color: #ff0000;
}

#login-response p.success,
#register-response p.success {
  background-color: #e5ffe5;
  border-color: #00b300;
}

/* Align the password field and eye icon */
.toggle-password {
  font-size: 16px;
  color: #333;
  user-select: none;
}

.toggle-password:hover {
  color: #000;
}

.loader1215 {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #007bff;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
  margin: 10px auto;
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

#reset-password-container {
  width: 100%;
  max-width: 400px; /* Giới hạn chiều rộng */
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.custom-reset-password-modal h2 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #333;
}

#reset-password-form input {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.custom-btn.custom-primary {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  background-color: #4a7d91;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.custom-btn.custom-primary:hover {
  background-color: #355c6b;
  color: #fff !important;
}

/* Container chính */
#reset-password-container {
  position: fixed; /* Tách ra khỏi luồng của cha */
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%); /* Căn giữa theo cả hai trục */
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 400px; /* Giới hạn chiều rộng */
  padding: 20px;
  background-color: #fff; /* Màu nền */
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Form chính */
.custom-reset-password-modal {
  background-color: #fff;
  border-radius: 8px;
  padding: 20px;
  width: 100%;
  max-width: 400px;
  font-family: Helvetica, Arial, sans-serif;
}

/* Header */
.custom-reset-password-modal h2 {
  text-align: center;
  font-size: 24px;
  margin-bottom: 20px;
}

/* Inputs */
#reset-password-form input {
  width: 95%;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 14px;
}

/* Buttons */
.register-btn {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin: 10px 0;
  font-weight: bold;
  background-color: #007bff;
  color: #fff;
}

.register-btn:hover {
  background-color: #0056b3;
}

#reset-response {
  font-size: 14px;
  margin-top: 10px;
  color: #333;
  text-align: center;
}

.policy-links {
  font-size: 13px;
  text-align: center;

  line-height: 1.5;
  margin-top: 10px;
}
.policy-links a {
  color: #0073aa !important;
  text-decoration: underline;
}

.security-setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 20px;
  margin-top: 20px;
}

.security-setting-label {
  font-size: 14px;
  font-weight: 400;
}

.security-setting-description {
  font-size: 12px;
  color: #666;
}

.security-btn {
  padding: 8px;
  background-color: #4a7d91;
  color: white;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin: 0;
  width: 150px;
}

.security-btn:hover {
  background-color: #355c6b;
}
