/* Login page presentation only. Web Forms controls and postback behavior stay in Login.aspx. */
:root {
  --login-ink: #102b55;
  --login-blue: #0757d8;
  --login-cyan: #08add2;
  --login-font: "Segoe UI", Inter, system-ui, -apple-system, Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body, button, input, textarea, select { font-family: var(--login-font); }
body {
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--login-ink);
  background: #082044 url("../Images/Thang12.jpg") center center / cover no-repeat fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(2, 18, 48, .64), rgba(2, 20, 51, .23) 57%, rgba(2, 19, 45, .37));
}

#form1 { min-height: 100vh; min-height: 100dvh; }
.ois-pwa-install-notice { display: none !important; }
.page-shell {
  position: relative;
  z-index: 1;
  width: min(1380px, calc(100% - 88px));
  min-height: 100vh;
  min-height: 100dvh;
  margin: auto;
  padding: 44px 0;
  display: flex;
  align-items: center;
}
.login-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 450px);
  gap: clamp(40px, 7vw, 120px);
  align-items: center;
  width: 100%;
}

.hero-panel {
  position: relative;
  order: 1;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  min-width: 0;
  min-height: min(690px, calc(100dvh - 88px));
  padding: 0;
  color: #fff;
  text-shadow: none;
}
.hero-brand {
  position: relative;
  z-index: 2;
  width: min(385px, 100%);
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.hero-brand img {
  display: block;
  width: 100%;
  height: auto;
}
.hero-art {
  position: relative;
  z-index: 2;
  width: min(100%, 610px);
  margin: auto auto 0;
  padding: 14px 0 0;
}
.hero-art img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(2, 174, 255, .62));
}
.light-trails {
  position: absolute;
  z-index: 1;
  left: -7%;
  bottom: 21%;
  width: 115%;
  height: 34%;
  pointer-events: none;
}
.light-trails path {
  fill: none;
  stroke: #2bd7ff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-dasharray: 3 12;
  filter: drop-shadow(0 0 4px #00bfff);
  animation: login-light-flow 15s linear infinite;
}
.light-trails path:nth-child(2) { stroke: #a6f0ff; stroke-width: 1; animation-duration: 21s; animation-direction: reverse; }
.light-trails path:nth-child(3) { opacity: .55; stroke-width: 1; animation-duration: 24s; }
@keyframes login-light-flow { to { stroke-dashoffset: -240; } }

.login-panel {
  position: relative;
  z-index: 3;
  order: 2;
  width: 100%;
  max-width: 450px;
  border: 1px solid rgba(255, 255, 255, .86);
  border-radius: 24px;
  overflow: hidden;
  color: var(--login-ink);
  background: rgba(247, 251, 255, .95);
  box-shadow: 0 24px 80px rgba(0, 15, 49, .36), 0 0 0 1px rgba(59, 181, 252, .14);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.panel-inner { padding: 38px 38px 34px; background: none; }
.login-logo {
  display: none;
  width: min(100%, 258px);
  height: auto;
  margin: 0 auto 20px;
}
.login-title {
  margin: 0;
  color: #09285a;
  font-size: clamp(27px, 3vw, 33px);
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -.025em;
  text-align: left;
}
.login-subtitle {
  margin: 8px 0 0;
  color: #5b7492;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.5;
  letter-spacing: .14em;
  text-align: left;
}
.login-form {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}
.field-group { display: grid; gap: 8px; min-width: 0; }
.field-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #24466c;
  font-size: 13px;
  font-weight: 700;
}
.field-label i { width: 17px; text-align: center; color: #0877bf; font-size: 13px; }
.field-wrap { position: relative; }
.field-leading {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #7694b2;
  font-size: 15px;
  pointer-events: none;
}
.input {
  width: 100%;
  min-height: 50px;
  padding: 0 15px 0 43px;
  border: 1px solid #cbd9e8;
  border-radius: 11px;
  background: #fff;
  color: #09285a;
  outline: none;
  font-size: 16px;
  font-weight: 500;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input::placeholder { color: #8da1b8; font-weight: 400; }
.input:focus { border-color: #287de6; box-shadow: 0 0 0 3px rgba(40, 125, 230, .14); }
.password-row .input { padding-right: 54px; }
.toggle-eye {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #54779b;
  cursor: pointer;
}
.toggle-eye:hover { background: #eaf3ff; color: var(--login-blue); }
.caps-hint { display: none; color: #9a4d12; font-size: 12px; font-weight: 600; }
.remember-row {
  display: grid;
  gap: 13px;
  align-items: start;
  margin-top: 0;
}
.remember { display: flex; align-items: center; gap: 9px; color: #486584; font-size: 13px; font-weight: 500; }
.remember input { width: 17px; height: 17px; margin: 0; accent-color: var(--login-blue); }
.remember label { cursor: pointer; }
.helper-links { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px 16px; }
.helper-link { color: var(--login-blue); font-size: 13px; font-weight: 700; text-decoration: none; }
.helper-link:hover { text-decoration: underline; }
.login-btn {
  width: 100%;
  min-height: 52px;
  margin-top: 2px;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(100deg, #0758de, #069fca);
  color: #fff;
  font-size: 16px;
  font-weight: 750;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(4, 92, 180, .2);
}
.login-btn:hover, .login-btn:focus-visible { filter: brightness(1.06); }
.login-btn:disabled { opacity: .72; cursor: not-allowed; }
.login-btn.secondary { background: #e5eff9; color: #234d79; box-shadow: none; }
.recovery-title { display: flex; align-items: center; gap: 9px; margin: 0; color: #102b55; font-size: 18px; }
.recovery-note { margin: 0; color: #58718c; font-size: 13px; line-height: 1.55; }
.error, .val-summary { color: #ae3030; font-size: 13px; font-weight: 600; }
.val-summary { display: block; margin: 18px 0 0; padding: 11px 13px; border: 1px solid #f0bfc0; border-radius: 10px; background: #fff2f2; }
.val-summary ul { margin: 6px 0 0; padding-left: 18px; }

@media (max-width: 900px) {
  body { background-position: 43% center; background-attachment: scroll; }
  body::before { background: linear-gradient(180deg, rgba(2, 18, 48, .55), rgba(2, 18, 48, .28)); }
  .page-shell { width: min(100% - 32px, 480px); padding: 28px 0 32px; }
  .login-stage { display: flex; flex-direction: column; gap: 20px; }
  .hero-panel {
    order: 2;
    width: min(100%, 350px);
    min-height: 0;
    align-self: center;
  }
  .hero-brand, .light-trails { display: none; }
  .hero-art { width: min(100%, 310px); margin: 0 auto; padding: 0; }
  .hero-art img { max-height: 180px; }
  .login-panel { order: 1; max-width: none; }
  .panel-inner { padding: 30px; }
  .login-logo { display: block; }
}
@media (max-width: 520px) {
  .page-shell { width: calc(100% - 24px); padding: 14px 0 24px; align-items: flex-start; }
  .login-stage { gap: 14px; }
  .login-panel { border-radius: 18px; }
  .panel-inner { padding: 25px 20px 26px; }
  .login-logo { width: min(100%, 230px); margin-bottom: 22px; }
  .login-title { font-size: 27px; }
  .login-subtitle { font-size: 10px; letter-spacing: .1em; }
  .login-form { margin-top: 24px; gap: 17px; }
  .helper-links { justify-content: flex-start; }
  .hero-art { width: min(100%, 240px); }
  .hero-art img { max-height: 125px; }
}
@media (max-height: 740px) and (min-width: 901px) {
  .page-shell { padding: 20px 0; }
  .hero-panel { min-height: min(600px, calc(100dvh - 40px)); }
  .hero-art img { max-height: 260px; }
  .panel-inner { padding-top: 28px; padding-bottom: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .light-trails path { animation: none; }
}

/* Desktop and phone composition based on the supplied visual reference. */
body {
  background-position: center 46%;
}
body::before {
  background: linear-gradient(180deg, rgba(2, 15, 51, .39), rgba(2, 18, 46, .08) 42%, rgba(2, 23, 59, .35));
}
.page-shell {
  width: min(1480px, calc(100% - 72px));
  padding: 30px 0 18px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
}
.login-stage {
  flex: 1;
  grid-template-columns: minmax(0, 1fr) minmax(395px, 455px);
  gap: clamp(32px, 5vw, 86px);
  align-items: center;
  position: relative;
}
.login-stage::before {
  content: "AN TOÀN · HIỆU QUẢ · PHÁT TRIỂN BỀN VỮNG";
  position: absolute;
  top: 30px;
  right: 0;
  color: rgba(227, 242, 255, .8);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
}
.hero-panel {
  min-height: min(730px, calc(100dvh - 125px));
  justify-content: space-between;
}
.hero-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  width: auto;
  max-width: 660px;
  padding: 0;
  border-radius: 0;
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.brand-symbol {
  flex: 0 0 74px;
  width: 74px;
  height: 74px;
  overflow: hidden;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #fff;
}
.brand-symbol img {
  display: block;
  width: 330px;
  max-width: none;
  height: auto;
}
.brand-wordmark {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.brand-wordmark strong {
  display: block;
  white-space: nowrap;
  color: #fff;
  font-size: clamp(22px, 2.5vw, 30px);
  line-height: 1;
  font-weight: 850;
  letter-spacing: -.04em;
}
.brand-wordmark strong em {
  color: #ee2027;
  font-style: italic;
}
.brand-wordmark small {
  display: block;
  padding-left: 16px;
  border-left: 1px solid rgba(255, 255, 255, .55);
  color: #fff;
  font-size: clamp(11px, 1.1vw, 14px);
  line-height: 1.4;
  font-weight: 750;
  letter-spacing: .03em;
  white-space: nowrap;
}
.hero-art {
  width: min(100%, 620px);
  margin: auto 0 2vh 2vw;
  text-align: center;
}
.hero-art img {
  max-height: 430px;
}
.hero-art p {
  margin: -10px 0 0;
  color: #fff;
  font-size: clamp(12px, 1.2vw, 17px);
  font-weight: 800;
  letter-spacing: .3em;
  text-shadow: 0 2px 12px #001d55;
}
.light-trails { bottom: 12%; height: 42%; }
.login-panel {
  max-width: 455px;
  border-radius: 22px;
  background: linear-gradient(150deg, rgba(255,255,255,.97), rgba(226,243,255,.94));
}
.panel-inner { padding: 38px 36px 28px; }
.login-title { font-size: 34px; }
.login-subtitle { font-size: 12px; letter-spacing: .12em; }
.remember-row { gap: 10px; }
.login-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid #cbdbea;
}
.login-values span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  color: #26527f;
  font-size: 10px;
  line-height: 1.3;
  font-weight: 700;
  text-align: left;
}
.login-values span + span { border-left: 1px solid #cbdbea; }
.login-values i { color: #0781d2; font-size: 23px; }
.login-values span:last-child i { color: #0b9aa7; }
.login-footer {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  min-height: 70px;
  margin-top: 18px;
  padding: 18px 24px;
  border-top: 1px solid rgba(64, 202, 255, .65);
  border-radius: 28px 28px 0 0;
  background: linear-gradient(165deg, rgba(0, 80, 157, .88), rgba(0, 25, 68, .94) 55%, rgba(0, 61, 125, .85));
  box-shadow: 0 -12px 32px rgba(0, 131, 255, .2);
  color: #dbeaff;
  font-size: 11px;
  letter-spacing: .03em;
}
.footer-plants { display: flex; flex-wrap: wrap; gap: 16px; color: #fff; font-weight: 750; }
.footer-plants span::before { content: "♧"; margin-right: 5px; color: #70d8ff; font-size: 15px; }

@media (max-width: 900px) {
  body { background-position: 42% top; background-attachment: scroll; }
  body::before { background: linear-gradient(180deg, rgba(0, 29, 80, .28), rgba(0, 22, 62, .08) 42%, rgba(0, 17, 54, .48)); }
  .page-shell { width: 100%; min-height: 100dvh; padding: 0; }
  .login-stage { display: flex; flex-direction: column; gap: 0; flex: none; }
  .login-stage::before { display: none; }
  .hero-panel {
    order: 1;
    align-self: stretch;
    width: 100%;
    min-height: clamp(300px, 46dvh, 420px);
    padding: 30px 16px 0;
    align-items: center;
  }
  .hero-brand { flex-direction: column; gap: 5px; text-align: center; }
  .brand-symbol { flex-basis: 58px; width: 58px; height: 58px; }
  .brand-symbol img { width: 260px; }
  .brand-wordmark { display: block; }
  .brand-wordmark strong { font-size: 25px; }
  .brand-wordmark small {
    margin-top: 7px;
    padding-left: 0;
    border-left: 0;
    font-size: 10px;
    line-height: 1.4;
  }
  .hero-art { width: min(88vw, 340px); margin: auto 0 10px; }
  .hero-art img { max-height: 220px; }
  .hero-art p { margin-top: -10px; font-size: 10px; letter-spacing: .15em; }
  .light-trails { display: block; left: 0; width: 100%; bottom: 0; height: 42%; }
  .login-panel {
    order: 2;
    width: min(480px, calc(100% - 24px));
    max-width: none;
    margin: 0 auto 18px;
  }
  .panel-inner { padding: 28px; }
  .login-logo { display: none; }
  .login-footer {
    width: 100%;
    margin-top: auto;
    border-radius: 18px 18px 0 0;
    justify-content: center;
    text-align: center;
  }
  .footer-plants { display: none; }
}
@media (max-width: 520px) {
  .hero-panel { min-height: clamp(300px, 43dvh, 370px); padding-top: 20px; }
  .brand-symbol { flex-basis: 52px; width: 52px; height: 52px; }
  .brand-symbol img { width: 230px; }
  .brand-wordmark strong { font-size: 22px; }
  .brand-wordmark small { font-size: 9px; }
  .hero-art { width: min(82vw, 300px); }
  .hero-art img { max-height: 185px; }
  .hero-art p { font-size: 9px; }
  .login-panel { width: calc(100% - 24px); border-radius: 20px; }
  .panel-inner { padding: 25px 22px 22px; }
  .login-title { font-size: 27px; }
  .login-subtitle { font-size: 10px; }
  .login-form { margin-top: 24px; gap: 16px; }
  .helper-links { justify-content: flex-end; }
  .login-values { margin-top: 25px; padding-top: 16px; }
  .login-values span { gap: 5px; font-size: 8px; }
  .login-values i { font-size: 18px; }
  .login-footer { min-height: 50px; padding: 13px 10px; font-size: 9px; }
}
@media (max-height: 720px) and (min-width: 901px) {
  .hero-panel { min-height: min(600px, calc(100dvh - 100px)); }
  .hero-art img { max-height: 300px; }
  .login-footer { min-height: 55px; }
}
