/* 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 {

  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 var--white-alpha-10;
  border-radius: 5px;
  font-size: 14px;
  color: #ddd;
}

.register-btn,
.login-btn {
  width: 100%;
  padding: 20px 10px;
  font-size: 16px;
  background: linear-gradient(to bottom, #ff0000, #4b2323);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  color: #fff;
  margin: 10px 0px 0px 0px;
}

/* Google Button */
.google-btn {
  width: 93%;
  padding: 12px;
  font-size: 16px;
  font-weight: bold;
  color: #fff !important;
  background: linear-gradient(to bottom, #333333, #505050);
  border: 1px solid var(--white-alpha-10);
  border-radius: 5px;
  cursor: pointer;
  margin: 10px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
 

/* Hover làm nút sáng hơn + ánh sáng lướt qua */
.register-btn:hover,
.login-btn:hover {
	background: linear-gradient(to bottom, #19191e, red);
}

.register-btn:hover::after,
.login-btn:hover::after {
  left: 100%;
}

button#google-register {
  width: 100%;
}


.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;
  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 var(--white-alpha-10);
  background: var(--background-dark);
  box-shadow: var(--shadow-medium);
}

/* 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: #ddd;
  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: #3f3f3f;
}

.custom-secondary {
  background-color: #3f3f3f;
}

.custom-primary:hover {
  background-color: #505050;
}

.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 var--white-alpha-10;
  border-radius: 4px;
  font-size: 14px;
}

.custom-btn.custom-primary {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  background: linear-gradient(to bottom, #ff0000, #4b2323);
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.custom-btn.custom-primary:hover {
  background-color: #505050;
  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: #000; /* Màu nền */
  border-radius: 8px;
  border: 1px solid var(--white-alpha-10);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Form chính */
.custom-reset-password-modal {
  background-color: #000;
  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 var--white-alpha-10;
  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;

}



#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: #5b5b5b;
  color: white;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin: 0;
  width: 150px;
}

.security-btn:hover {
  background-color: #4b2323;
}
