/* Trang đăng nhập — layout căn giữa kiểm Hyper (nền #ebf2fe, card header xanh #3980f9) */

:root {
  --auth-hyper-bg: #ebf2fe;
  --auth-hyper-primary: #3980f9;
  --auth-hyper-primary-hover: #2d6fd8;
  --auth-card-bg: #ffffff;
  --auth-title: #313a46;
  --auth-muted: #98a6ad;
  --auth-link: #3980f9;
}

.auth-login-page {
  background-image: url(../images/bg-pattern-light.svg);
  background-size: cover;
  background-position: center;
  margin: 0;
  min-height: 100vh;
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--auth-title);
  -webkit-font-smoothing: antialiased;
}

.auth-login-backdrop {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* Họa tiết vòng tròn đồng tâm mờ (giống mẫu Hyper) */
.auth-login-backdrop::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  width: min(140vw, 900px);
  height: min(140vw, 900px);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(57, 128, 249, 0.09) 0%,
    rgba(57, 128, 249, 0.05) 28%,
    transparent 56%
  );
  pointer-events: none;
}

.auth-login-backdrop::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  width: min(200vw, 1200px);
  height: min(200vw, 1200px);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    transparent 40%,
    rgba(57, 128, 249, 0.04) 48%,
    transparent 58%
  );
  pointer-events: none;
}

.auth-login-backdrop-fill {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.25rem;
  position: relative;
  z-index: 1;
}

.auth-login-center {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 28rem;
}

/* Card */
.auth-login-card {
  border-radius: 0.35rem;
  overflow: hidden;
  box-shadow: 0 0 35px 0 rgba(154, 161, 171, 0.15) !important;
}

.auth-login-card-header {
  background: var(--auth-hyper-primary) !important;
  padding: 1.35rem 1.5rem !important;
}

.auth-login-header-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  color: #fff !important;
}

.auth-login-header-mark {
  display: flex;
  flex-shrink: 0;
}

.auth-login-header-title {
    font-size: clamp(0.82rem, 2.8vw, 1.2rem);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #fff;
    line-height: 1.2;
    text-align: center;
}

.auth-login-card-body {
  padding: 2rem 1.75rem 1.75rem !important;
}

.auth-login-card-title {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--auth-title);
}

.auth-login-card-sub {
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
  color: var(--auth-muted);
  line-height: 1.55;
}

.auth-login-card .alert {
  font-size: 0.875rem;
  border-radius: 0.25rem;
  text-align: left;
}

.auth-login-card .alert code {
  font-size: 0.8125rem;
}

/* Nút Google — full width, viền nhẹ (nội dung thực tế là OAuth) */
.auth-btn-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.65rem 1.15rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #3c4043;
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 0.25rem;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
  box-shadow: none;
}

.auth-btn-google:hover {
  background: #f8f9fa;
  border-color: #ced4da;
  color: #202124;
}

.auth-btn-google:focus-visible {
  outline: 2px solid var(--auth-hyper-primary);
  outline-offset: 2px;
}

.auth-btn-google svg {
  flex-shrink: 0;
}

.auth-login-hint {
  margin: 1rem 0 0;
  font-size: 0.8125rem;
  color: var(--auth-muted);
  line-height: 1.5;
}

/* Dưới card — kiểu “Don’t have an account? Sign Up” */
.auth-login-below-card {
  margin: 1.25rem 0 0;
  font-size: 0.9375rem;
  color: var(--auth-muted);
}

.auth-login-below-link {
  color: var(--auth-link);
  font-weight: 600;
  text-decoration: none;
}

.auth-login-below-link:hover {
  color: var(--auth-hyper-primary-hover);
  text-decoration: underline;
}

.auth-login-security {
  margin: 0.75rem 0 0;
  font-size: 0.75rem;
  color: #b0b8c4;
  line-height: 1.45;
}

.auth-login-copyright {
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  padding: 1rem 1.25rem 1.35rem;
  font-size: 0.8125rem;
  color: var(--auth-muted);
}

@media (max-width: 575.98px) {
  .auth-login-card-body {
    padding: 1.5rem 1.25rem 1.35rem !important;
  }

  .auth-login-header-title {
    font-size: 1.1rem;
    letter-spacing: 0.04em;
  }
}
