/* ===== Background ===== */
.my-login-page {
  font-family: Arial, Helvetica, sans-serif !important;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;

  background-image: url("/images/logo/bg-login.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  padding: 24px;
  position: relative;
  overflow: hidden;
}

.my-login-page::before {
  content: "";
  position: absolute;
  inset: 0;

  /* #09925033 ~ rgba(9,146,80,0.2) */
  background-color: rgba(9, 146, 80, 0.2);

  /* blur giống ảnh */
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  z-index: 0;
}

/* ===== Card ===== */
.my-login-card {
  position: relative;
  z-index: 1;

  width: 100%;
  max-width: 634px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

/* ===== Header xanh ===== */
.title-header {
  height: 80px;
  background-color: #095c37;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;

  display: flex;
  flex-direction: column;   /* xếp 2 div theo chiều dọc */
  align-items: center;      /* căn giữa ngang */
  justify-content: center;  /* căn giữa dọc */

  text-align: center;
}

/* ===== Logo + title ===== */
.my-login-header {
  text-align: center;
  padding: 22px 24px 6px;
}

.my-login-logo {
  width: 268px;
  height: 80px;
  display: block;
  margin: 0 auto;

  object-fit: contain;
  object-position: center;
}

.my-login-title {
  margin: 18px 0 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #111;
}

/* ===== Form spacing ===== */
.my-login-form {
  padding: 18px 48px 0;
}

/* Labels giống ảnh */
.my-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
  line-height: 20px;
  margin-bottom: 6px;
}

.my-field {
  margin-bottom: 14px;
}

.my-input {
  width: 100%;
  height: 40px;

  box-sizing: border-box;   /* 🔴 BẮT BUỘC */
  border-radius: 6px;
  border: 1px solid #e5e7eb;

  padding: 0 12px;
  outline: none;

  font-size: 14px;
  background-color: #fff;

  /* Chuẩn hóa input & select */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.my-input::placeholder {
  color: #9ca3af;
}

.my-input:focus {
  border-color: #0a8f4a;
  box-shadow: 0 0 0 3px rgba(10, 143, 74, 0.12);
}

/* Select tenant wrapper – adds custom chevron arrow */
.my-select-wrap {
  position: relative;
}

.my-select-wrap::after {
  content: "";
  pointer-events: none;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #6b7280;
}

.my-select-wrap .my-input {
  padding-right: 36px;
  cursor: pointer;
}

/* Password field + visibility toggle */
.my-password-wrap {
  position: relative;
}

.my-password-wrap .my-input {
  padding-right: 44px;
}

.my-password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
}

.my-password-toggle:hover {
  color: #0a8f4a;
  background: rgba(10, 143, 74, 0.06);
}

.my-password-toggle:focus-visible {
  outline: 2px solid #0a8f4a;
  outline-offset: 2px;
}

.my-password-icon {
  width: 20px;
  height: 20px;
  display: block;
}

/* row checkbox + forgot */
.my-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 6px 0 14px;
}

.my-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #6b7280;
}

.my-link {
  font-size: 14px;
  color: #0a8f4a;
  text-decoration: none;
  font-weight: 500;
}

.my-link:hover {
  text-decoration: underline;
}

/* ===== Buttons ===== */
.my-btn {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  width: 100%;
  height: 44px;
  border-radius: 6px; /* giống ảnh */
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.my-btn-primary {
  background: #0a8f4a; /* xanh giống ảnh */
  color: #fff;
}

.my-btn-primary:hover {
  filter: brightness(0.98);
}

.my-btn-external {
  background: #f3f4f6;  /* xám nhạt giống ảnh */
  border-color: #e5e7eb;
  color: #111827;
}

/* VNeID button icon */
.my-btn-vneid .vneid-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  border-radius: 4px;
}

/* Divider 'hoặc' */
.my-login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 40px 0;
}

.my-login-divider::before,
.my-login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

.my-login-divider span {
  font-size: 12px;
  color: #9ca3af;
  font-weight: 600;
}

/* external area spacing */
.my-login-external {
  padding: 10px 40px 8px;
}

.my-login-external form {
  display: grid;
  gap: 12px;
}

/* validation */
.my-validation {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #b00020;
}

/* Footer */
.my-login-footer {
  margin-top: 14px;
  text-align: center;
  font-size: 14px;
  font-weight: 400;
  color: #6b7280;
  padding: 24px 0;
}

/* ===== Modal ===== */
.vneid-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
  align-items: center;     /* căn giữa dọc */
  justify-content: center; /* căn giữa ngang */
}

.vneid-modal.is-open {
  display: flex;
}

.vneid-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.vneid-modal__dialog {
  position: relative;
  width: calc(100% - 32px);
  max-width: 430px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
  padding: 40px;
}

.vneid-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #6b7280;
}

.vneid-modal__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 16px;
}

.vneid-modal__icon {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  object-fit: contain;
}

.vneid-modal__title {
  align-items: center;
  justify-content: start; 
  font-size: 24px;
  font-weight: 700;
  color: #111827;
}

/* Container actions (để canh giữa dễ) */
.vneid-modal__actions {
  display: flex;
  flex-direction: column;
  align-items: center;   /* 🔴 canh giữa ngang */
  gap: 12px;
  padding-top: 16px;
}

/* Button chung */
.vneid-modal__btn {
  height: 40px;
  min-width: 180px;      /* 🔴 nút nhỏ vừa phải */
  

  border-radius: 6px;
  border: 1px solid #e5e7eb;
  background: #fff;

  font-weight: 600;
  font-size: 14px;

  cursor: pointer;
}

/* Primary vẫn full width nếu bạn muốn */
.vneid-modal__btn--primary {
  width: 100%;
  background: #333741;
  color: #fff;
  font-size: 16px;
    font-weight: 600;
  border-color: #111827;
}

/* Cancel: nhỏ + căn giữa */
.vneid-modal__btn--cancel {
  width: auto;          /* 🔴 reset width */
  min-width: unset;     /* 🔴 BẮT BUỘC: gỡ min-width */
  max-width: 100px;
  margin-top: 16px;
  padding: 0 14px;      /* nhỏ lại cho gọn */
  background: #fff;
  color: #111827;
}

.my-alert {
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 12px;
  font-size: 13px;
}

.my-alert-danger {
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.25);
  color: #b91c1c;
}

/* ===== Google SSO button ===== */
.my-btn-google {
  background: #fff;
  border: 1px solid #dadce0;
  color: #3c4043;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.2px;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.12), 0 1px 3px rgba(60, 64, 67, 0.08);
  transition: background 0.15s, box-shadow 0.15s;
  gap: 10px;
}

.my-btn-google:hover {
  background: #f8f9fe;
  box-shadow: 0 2px 6px rgba(60, 64, 67, 0.2);
  border-color: #c6c9cc;
}

.my-btn-google:active {
  background: #f1f3f4;
  box-shadow: none;
}

.google-icon {
  flex-shrink: 0;
  display: block;
}