/* ============================================================
   Login split-screen (guest page — không dùng token admin)
   Font Inter — cùng dashboard / app.css
   ============================================================ */
body.login-page {
  margin: 0;
  min-height: 100dvh;
  overflow: hidden;
  background: #ffffff;
  color: #111318;
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
html[data-color-scheme="dark"] body.login-page {
  background: #ffffff;
  color: #111318;
}
.login-page [x-cloak] {
  display: none !important;
}
.login-page .hidden {
  display: none !important;
}
.login-shell {
  display: flex;
  min-height: 100dvh;
  height: 100dvh;
  width: 100%;
  overflow: hidden;
}
.login-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  min-height: 100dvh;
  padding: 32px 24px;
  background: #ffffff;
  box-sizing: border-box;
}
.login-logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.login-logo-img {
  height: 30px;
  width: auto;
  display: block;
}
.login-logo-rule {
  width: 1px;
  height: 28px;
  background: #E5E7EB;
  flex-shrink: 0;
}
.login-logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.login-logo-name {
  margin: 0;
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.1;
  color: #111318;
}
.login-logo-caption {
  display: flex;
  align-items: center;
  gap: 8px;
}
.login-logo-caption span {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #9CA3AF;
}
.login-logo-accent {
  width: 20px;
  height: 3px;
  border-radius: 999px;
  background: #FFC629;
}
.login-mid {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: 380px;
  gap: 28px;
  min-height: 0;
}
.login-heading h1 {
  margin: 0 0 8px;
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  color: #111318;
}
.login-heading p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #6B7280;
}
.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.login-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.login-label {
  font-size: 13.5px;
  font-weight: 600;
  color: #374151;
}
.login-input-wrap {
  position: relative;
}
.login-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  pointer-events: none;
  color: #9CA3AF;
}
.login-input {
  display: block;
  width: 100%;
  height: 44px;
  box-sizing: border-box;
  padding: 0 44px 0 44px;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  background: #F9FAFB;
  color: #111318;
  font-family: inherit;
  font-size: 14.5px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.login-input::placeholder {
  color: #9CA3AF;
}
.login-input:focus {
  border-color: #111318;
  box-shadow: 0 0 0 3px rgba(17, 19, 24, 0.08);
  background: #ffffff;
}
.login-input.is-invalid {
  border-color: #B91C1C;
}
.login-field-error {
  margin: 0;
  font-size: 12.5px;
  color: #B91C1C;
}
.login-eye {
  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: 8px;
  background: transparent;
  color: #9CA3AF;
  cursor: pointer;
}
.login-eye:hover,
.login-eye:focus-visible {
  color: #111318;
}
.login-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.login-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: #374151;
  cursor: pointer;
  user-select: none;
}
.login-check input {
  width: 16px;
  height: 16px;
  accent-color: #111318;
  cursor: pointer;
}
.login-forgot {
  font-size: 13.5px;
  font-weight: 600;
  color: #111318;
  text-decoration: none;
}
.login-forgot:hover {
  text-decoration: underline;
}
.login-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 10px;
  background: #111318;
  color: #ffffff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}
.login-submit:hover {
  background: #000000;
}
.login-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.login-contact {
  margin: 0;
  text-align: center;
  font-size: 13.5px;
  color: #6B7280;
}
.login-contact a {
  font-weight: 700;
  color: #111318;
  text-decoration: none;
}
.login-contact a:hover {
  text-decoration: underline;
}
.login-lang {
  display: inline-flex;
  align-items: center;
  align-self: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  background: #ffffff;
  color: #374151;
  font-size: 13.5px;
  font-weight: 500;
  flex-shrink: 0;
}
.login-lang-flag {
  display: block;
  width: 18px;
  height: 12px;
  border-radius: 2px;
}
.login-lang-chevron {
  color: #9CA3AF;
}
.login-right {
  display: none;
  position: relative;
  flex: 1;
  overflow: hidden;
  min-height: 100dvh;
}
.login-right-bg {
  position: absolute;
  inset: 0;
  background-image: url('/images/bg-login-ppf.webp');
  background-size: cover;
  background-position: center;
}
.login-right-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.45) 45%, rgba(0, 0, 0, 0.15) 100%);
}
.login-right-glow {
  position: absolute;
  top: -140px;
  right: -120px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 198, 41, 0.28) 0%, transparent 70%);
  filter: blur(10px);
}
.login-right-content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 44px;
  height: 100%;
  padding: 72px;
  box-sizing: border-box;
}
.login-headline {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 520px;
}
.login-headline h2 {
  margin: 0;
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff;
}
.login-headline p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.7);
}
.login-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 460px;
}
.login-feature {
  display: flex;
  flex-direction: row;
  gap: 16px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
}
.login-feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(255, 198, 41, 0.16);
  color: #FFC629;
}
.login-feature-copy {
  min-width: 0;
}
.login-feature-copy h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}
.login-feature-copy p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.66);
}
.login-alert {
  margin: 0;
}
@media (min-width: 1024px) {
  .login-left {
    width: 56.666%;
    flex: 0 0 56.666%;
    padding: 48px 40px;
  }
  .login-right {
    display: block;
    width: 43.334%;
    flex: 0 0 43.334%;
  }
  .login-right-content {
    padding: 40px 28px;
    gap: 22px;
  }
  .login-headline {
    max-width: none;
  }
  .login-headline h2 {
    font-size: 28px;
  }
  .login-features {
    max-width: none;
  }
}
@media (min-width: 1024px) and (max-height: 760px) {
  .login-left {
    padding: 28px 40px;
  }
  .login-right-content {
    padding: 28px 24px;
    gap: 16px;
  }
  .login-headline h2 {
    font-size: 22px;
  }
  .login-feature {
    padding: 12px 14px;
  }
}
@media (max-width: 1023px) {
  body.login-page {
    overflow: auto;
  }
  .login-shell,
  .login-left {
    height: auto;
    min-height: 100dvh;
  }
}
@media (prefers-reduced-motion: reduce) {
  .login-input,
  .login-submit {
    transition: none;
  }
}
