﻿:root{
  --landing-yellow: #fbe348;
  --landing-red: #bd2626;
  --landing-red-dark: #9a1f1f;
  --main_color: var(--landing-red);
  --main_gradient: linear-gradient(to right, var(--landing-yellow), #ffe97a);
  --text_color: #4b1b1b;
}
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  min-width: 430px;
}

@media (max-width: 700px) {
  .login {
    width: 90%;
    padding: 20px;
  }
}

.be-vietnam-pro-thin {
  font-family: "Be Vietnam Pro", sans-serif;
  font-weight: 100;
  font-style: normal;
}

.be-vietnam-pro-extralight {
  font-family: "Be Vietnam Pro", sans-serif;
  font-weight: 200;
  font-style: normal;
}

.be-vietnam-pro-light {
  font-family: "Be Vietnam Pro", sans-serif;
  font-weight: 300;
  font-style: normal;
}

.be-vietnam-pro-regular {
  font-family: "Be Vietnam Pro", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.be-vietnam-pro-medium {
  font-family: "Be Vietnam Pro", sans-serif;
  font-weight: 500;
  font-style: normal;
}

.be-vietnam-pro-semibold {
  font-family: "Be Vietnam Pro", sans-serif;
  font-weight: 600;
  font-style: normal;
}

.be-vietnam-pro-bold {
  font-family: "Be Vietnam Pro", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.be-vietnam-pro-extrabold {
  font-family: "Be Vietnam Pro", sans-serif;
  font-weight: 800;
  font-style: normal;
}

.be-vietnam-pro-black {
  font-family: "Be Vietnam Pro", sans-serif;
  font-weight: 900;
  font-style: normal;
}

.be-vietnam-pro-thin-italic {
  font-family: "Be Vietnam Pro", sans-serif;
  font-weight: 100;
  font-style: italic;
}

.be-vietnam-pro-extralight-italic {
  font-family: "Be Vietnam Pro", sans-serif;
  font-weight: 200;
  font-style: italic;
}

.be-vietnam-pro-light-italic {
  font-family: "Be Vietnam Pro", sans-serif;
  font-weight: 300;
  font-style: italic;
}

.be-vietnam-pro-regular-italic {
  font-family: "Be Vietnam Pro", sans-serif;
  font-weight: 400;
  font-style: italic;
}

.be-vietnam-pro-medium-italic {
  font-family: "Be Vietnam Pro", sans-serif;
  font-weight: 500;
  font-style: italic;
}

.be-vietnam-pro-semibold-italic {
  font-family: "Be Vietnam Pro", sans-serif;
  font-weight: 600;
  font-style: italic;
}

.be-vietnam-pro-bold-italic {
  font-family: "Be Vietnam Pro", sans-serif;
  font-weight: 700;
  font-style: italic;
}

.be-vietnam-pro-extrabold-italic {
  font-family: "Be Vietnam Pro", sans-serif;
  font-weight: 800;
  font-style: italic;
}

.be-vietnam-pro-black-italic {
  font-family: "Be Vietnam Pro", sans-serif;
  font-weight: 900;
  font-style: italic;
}

.logo_medical img {
  height: 68px;
  width: auto;
  object-fit: contain;
}
.main_container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0 auto;
    background-image: url('/img/background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.login {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-wrap: nowrap;
  gap: 32px;
  position: relative;
  width: 560px;
  background-color: #ffffff;
  padding: 20px 40px;
  border: 10px solid rgba(251, 227, 72, 0.35);
  border-radius: 32px;
  box-sizing: border-box;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.12);
}
.login_logo {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  flex-shrink: 0;
  gap: 24px;
  width: 100%;
  height: 100%;
}

.login_card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  position: relative;
  flex-shrink: 0;
  gap: 24px;
  width: 100%;
  min-width: 0;
}

.card_textfiled{
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: center;
  gap: 20px;
  flex-wrap: nowrap;
  flex-shrink: 0;
  position: relative;
  width: 100%;
}

.label_value_14px {
  font-size: 14px; 
  height: 18px;
}

.label_value_16px{
  font-size: 16px; 
  height: 22px;
}

.label_value_22px{
  font-size: 22px; 
  height: 32px;
}

.label_value_24px{
  font-size: 24px; 
  height: 34px;
}

.card_textfiled__email{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: center;
  flex-wrap: nowrap;
  flex-shrink: 0;
  gap: 4px;
  position: relative;
  width: 100%;
}

.email_placeholder{
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: stretch;
  flex-wrap: nowrap;
  flex-shrink: 0;
  padding: 12px 12px 12px 12px;
  background: #ffffff;
  border: 1px solid #e5e8ec;
  border-radius: 8px;
}

.email_placeholder:focus{
  outline: none;
  border: 1px solid var(--main_color); 
}

.email_placeholder::placeholder {
  color: #D0CED8;
  opacity: 1;
}

.card_textfiled__password{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: center;
  flex-wrap: nowrap;
  flex-shrink: 0;
  gap: 12px;
  position: relative;
  width: 100%;
}

.password_input{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: center;
  flex-wrap: nowrap;
  flex-shrink: 0;
  gap: 4px;
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.password_placeholder{
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: stretch;
  flex-wrap: nowrap;
  flex-shrink: 0;
  padding: 12px 12px 12px 12px;
  background: #ffffff;
  border: 1px solid #e5e8ec;
  border-radius: 8px;
  width: 100%;
  box-sizing: border-box;
}

.password_placeholder:focus {
  outline: none;
  border: 1px solid var(--main_color); 
}

.password_placeholder::placeholder {
  color: #D0CED8;
  opacity: 1;
}

.input-wrapper{
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  align-self: stretch;
  width: 100%;
}

.icon-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  cursor: pointer;
  color: #716D89;
  font-size: 20px;
  user-select: none;
  pointer-events: auto;
}

.password_remember{
  display: flex;
  flex-direction: row;
  align-items: center;
  align-self: stretch;
  justify-content: space-between;
  width: 100%;
  flex-wrap: nowrap
}

.password_remember__checkbox{
  display: flex;
  align-items: center;
  align-self: center;
  gap: 4px;
  width: 100%;
}

.btn{
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: center;
  gap: 16px;
  margin: 0;
  width: 100%;
}

.login_btn {
    display: inline-block;
    text-decoration: none;
  background: var(--landing-yellow);
    border: none;
    outline: none;
  color: var(--landing-red);
    font-size: 18px;
    line-height: 28px;
    width: 100%;
    padding: 12px 16px;
    text-align: center;
    border-radius: 100px;
    box-sizing: border-box;
  transition: all 0.2s ease-in-out;
    cursor: pointer;
  box-shadow: 0 10px 24px rgba(189, 38, 38, 0.14);
}

    .login_btn:hover {
    background: var(--landing-red);
    color: #ffffff;
    }

  .login_btn:active {
    background: var(--landing-red-dark);
  }

.backtohome_btn{
  font-size: 16px;
  line-height: 22px;
  text-decoration: none;
  background-color: transparent;
  border: none;
  outline: none;
  color:var(--main_color)
}
    .backtohome_btn:hover {
        color: var(--landing-red-dark);
    }
    .checkbox {
        width: 16px;
        height: 16px;
        accent-color: var(--main_color);
    }
.invalid-feedback {
    color: red;
    font-size: 12px;
    display: none;
}

.login_alert {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(189, 38, 38, 0.08);
  border: 1px solid rgba(189, 38, 38, 0.25);
  color: var(--landing-red-dark);
  font-size: 14px;
  line-height: 20px;
  box-sizing: border-box;
}

/* Chỉ hiển thị lỗi khi form đã được submit và có class was-validated */
form.was-validated input:invalid + .invalid-feedback {
    display: block;
}

/* Viền đỏ cho input lỗi */
form.was-validated input:invalid {
    border-color: red;
}

/* Logo và tiêu đề */
.login_logo {
    text-align: center;
    height: 100%;
}

    .login_logo span {
        color: var(--main_color);
        text-align: center;
        height: 100%;
    }

/* Tiêu đề Đăng nhập */
.login_card > span {
    width: 100%;
    text-align: center;
    color: var(--text_color);
}
/* Nhãn Email và Mật khẩu */
.card_textfiled__email span,
.card_textfiled__password span {
    color: var(--text_color);
}

/* Lưu mật khẩu */
.password_remember__checkbox span {
    color: var(--text_color);
}

/* Nút "Quên mật khẩu" nếu sử dụng */
.password_remember__checkbox a {
    color: var(--main_color);
    text-decoration: none;
    white-space: nowrap;
}

/* Form */
form.needs-validation {
    width: 100%;
}