
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Roboto", sans-serif;
}

:root {
  --primary-color: #ffffff;
  --second-color: #ffffff;
  --black-color: #000000;
}

body {
  background-image: url('../../frontend/images/banner/background-login.webp');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

a {
  text-decoration: none;
  color: var(--second-color);
}

a:hover {
  text-decoration: underline;
}

.wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: rgba(0, 0, 0, 0.2);
}

.login_box {
  position: relative;
  width: 450px;
  backdrop-filter: blur(20px);
  border: 2px solid var(--primary-color);
  border-radius: 15px;
  padding: 7.5em 2.5em 4em 2.5em;
  color: var(--second-color);
  box-shadow: 0px 0px 10px 2px rgba(0, 0, 0, 0.2);
}

.login-header {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-color);
  width: 220px;
  height: 70px;
  border-radius: 0 0 20px 20px;
}

.login-header span {
  font-size: 30px;
  color: var(--black-color);
	text-decoration: none;
}
.login-header span a strong{
  font-size: 30px;
  color: var(--black-color);
	text-decoration: none;
}

.login-header span a{
  font-size: 30px;
  color: var(--black-color);
	text-decoration: none;
}

.login-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: -30px;
  width: 30px;
  height: 30px;
  border-top-right-radius: 50%;
  background: transparent;
  box-shadow: 15px 0 0 0 var(--primary-color);
}

.login-header::after {
  content: "";
  position: absolute;
  top: 0;
  right: -30px;
  width: 30px;
  height: 30px;
  border-top-left-radius: 50%;
  background: transparent;
  box-shadow: -15px 0 0 0 var(--primary-color); /* Removed space before --primary-color */
}

.input_box {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 20px 0;
}

.input-field {
  width: 100%;
  height: 55px;
  font-size: 16px;
  background: transparent;
  color: var(--second-color);
  padding-inline: 20px 50px;
  border: 2px solid var(--primary-color);
  border-radius: 30px;
  outline: none;
}

#user {
  margin-bottom: 10px;
}

.label {
  position: absolute;
  top: 15px;
  left: 20px;
  transition: 0.2s;
}

.input-field:focus ~ .label,
.input-field:not(:placeholder-shown) ~ .label {
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 14px;
  background-color: var(--primary-color);
  border-radius: 30px;
  color: var(--black-color);
  padding: 0 10px;
} /* Closed the missing brace */

.icon {
  position: absolute;
  top: 18px;
  right: 25px;
  font-size: 20px;
}

.remember-forgot {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
}

.input-submit {
  width: 100%;
  height: 50px;
  background: #ffffffab;
  font-size: 16px;
  font-weight: 500;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: 0.3s;
}

.input-submit:hover {
  background: var(--second-color);
}

.register {
  text-align: center;
}

.register a {
  text-decoration: none; /* Bỏ gạch dưới */
  color: var(--primary-color); /* Màu mặc định */
  transition: color 0.2s ease-in-out;
}

.register a:hover {
  color: red; /* Màu khi hover */
}
.remember-me {
  display: flex;
  align-items: center; /* Căn giữa checkbox và chữ theo chiều dọc */
  gap: 6px; /* Khoảng cách giữa checkbox và chữ */
}

/* Ô checkbox */
#remember {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid red;
  border-radius: 4px;
  background-color: white;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease-in-out;
}

/* Hover hiệu ứng nhẹ */
#remember:hover {
  box-shadow: 0 0 4px rgba(255, 0, 0, 0.4);
}

/* Khi check */
#remember:checked {
  background-color: red;
  border-color: white;
}

/* Dấu check màu trắng */
#remember:checked::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 0px;
  width: 5px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Label */
.remember-me label {
  font-size: 15px;
  color: var(--second-color, #222);
  cursor: pointer;
  user-select: none;
}
.back-link {
  display: inline-flex;
  align-items: center; /* Căn giữa icon và chữ theo chiều dọc */
  gap: 6px; /* Khoảng cách giữa icon và chữ */
  font-size: 18px;
  color: var(--primary-color); /* hoặc màu bạn muốn */
  cursor: pointer;
  text-decoration: none;
}

.back-link i {
  font-size: 26px;
  line-height: 1; /* giúp icon không lệch */
}

.back-link:hover {
  color: red; /* tùy chỉnh hiệu ứng hover */
}
@media only screen and (max-width: 564px) {
  .wrapper {
    padding: 20px;
  }

  .login_box {
    padding: 7.5em 1.5em 4em 1.5em;
  }
}