/* Trang đăng nhập HRM — giao diện "uda" (tông màu donga.edu.vn). */
:root {
  --lg-green: #018f41;
  --lg-green-dark: #007133;
  --lg-green-deep: #00451f;
  --lg-green-soft: #e6f4ec;
  --lg-orange: #f06f39;
  --lg-ink: #1d2433;
  --lg-text: #4a5262;
  --lg-muted: #7a8291;
  --lg-line: #d8dce4;
  --lg-danger: #b42318;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body.lg-body { margin: 0; font-family: "Segoe UI", Roboto, Arial, sans-serif; color: var(--lg-ink); background: #f3f5f4; -webkit-font-smoothing: antialiased; }
.lg-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(400px, 1fr); }

/* ---------- ảnh khuôn viên ---------- */
.lg-hero { position: relative; background-color: var(--lg-green-deep); background-size: cover; background-position: center 40%; color: #fff; overflow: hidden; }
.lg-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 40, 18, .45) 0%, rgba(0, 40, 18, .05) 22%, rgba(0, 40, 18, .10) 45%, rgba(0, 52, 24, .78) 78%, rgba(0, 40, 18, .94) 100%); }
.lg-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: linear-gradient(90deg, var(--lg-orange), #f9a66c); }
.lg-hero-inner { position: relative; z-index: 1; height: 100%; min-height: 100vh; display: flex; flex-direction: column; padding: 36px 48px 40px; }
.lg-hero-brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; align-self: flex-start; }
.lg-hero-brand img { width: 46px; height: 46px; padding: 6px; background: #fff; border-radius: 12px; box-shadow: 0 4px 14px rgba(0, 0, 0, .18); }
.lg-hero-brand strong { display: block; font-size: 16px; letter-spacing: .6px; }
.lg-hero-brand small { display: block; font-size: 11px; letter-spacing: .5px; opacity: .85; text-transform: uppercase; }
.lg-hero-copy { margin-top: auto; max-width: 560px; }
.lg-kicker { display: inline-block; margin: 0 0 14px; padding: 4px 12px; border-radius: 999px; background: rgba(240, 111, 57, .92); font-size: 12px; font-weight: 700; letter-spacing: 1.5px; }
.lg-hero-copy h1 { margin: 0 0 14px; font-size: 44px; line-height: 1.12; font-weight: 700; letter-spacing: -.5px; text-shadow: 0 2px 18px rgba(0, 0, 0, .25); }
.lg-hero-copy p { margin: 0; font-size: 16px; line-height: 1.6; color: rgba(255, 255, 255, .88); }
.lg-hero-foot { margin: 28px 0 0; font-size: 13px; font-style: italic; letter-spacing: .3px; color: rgba(255, 255, 255, .75); }

/* ---------- khung đăng nhập ---------- */
.lg-panel { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 40px 32px 24px; background: #fff; }
.lg-card { width: 100%; max-width: 380px; margin: auto 0; }
.lg-card-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; font-size: 18px; font-weight: 600; color: var(--lg-green-dark); }
.lg-card-brand img { width: 34px; height: 34px; }
.lg-card-brand b { color: var(--lg-orange); }
.lg-card h2 { margin: 0 0 6px; font-size: 28px; font-weight: 700; letter-spacing: -.3px; }
.lg-sub { margin: 0 0 26px; color: var(--lg-muted); font-size: 14px; }
.lg-field { margin-bottom: 18px; }
.lg-field label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 600; color: var(--lg-text); }
.lg-input { position: relative; }
.lg-input > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--lg-muted); font-size: 15px; pointer-events: none; }
.lg-input input {
  width: 100%; height: 48px; padding: 0 44px 0 42px; border: 1px solid var(--lg-line); border-radius: 10px; background: #fff;
  font: inherit; font-size: 15px; color: var(--lg-ink); transition: border-color .15s, box-shadow .15s;
}
.lg-input input::placeholder { color: #a6acb7; }
.lg-input input:focus { outline: none; border-color: var(--lg-green); box-shadow: 0 0 0 4px rgba(1, 143, 65, .14); }
.lg-input input:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px #fff inset; -webkit-text-fill-color: var(--lg-ink); }
.lg-input:focus-within > i { color: var(--lg-green); }
.lg-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; border-radius: 8px; background: none; color: var(--lg-muted); cursor: pointer; font-size: 16px; }
.lg-eye:hover, .lg-eye:focus-visible { color: var(--lg-green-dark); background: var(--lg-green-soft); outline: none; }
.lg-hint { margin-top: 6px; font-size: 12.5px; color: #b54708; }
.lg-field .field-validation-error, .lg-error { display: block; margin-top: 6px; font-size: 12.5px; color: var(--lg-danger); }
.lg-alert { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 18px; padding: 11px 14px; border: 1px solid #f4c7c3; border-radius: 10px; background: #fef3f2; color: var(--lg-danger); font-size: 13.5px; line-height: 1.45; }
.lg-alert i { margin-top: 2px; }
.lg-alert ul { margin: 0; padding-left: 16px; }
.lg-submit {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 50px; margin-top: 6px;
  border: 0; border-radius: 10px; background: linear-gradient(180deg, var(--lg-green), var(--lg-green-dark)); color: #fff;
  font: inherit; font-size: 15.5px; font-weight: 600; letter-spacing: .2px; cursor: pointer;
  box-shadow: 0 8px 20px rgba(1, 113, 51, .25); transition: transform .1s, box-shadow .15s, filter .15s;
}
.lg-submit:hover { filter: brightness(1.05); box-shadow: 0 10px 24px rgba(1, 113, 51, .32); }
.lg-submit:active { transform: translateY(1px); }
.lg-submit:focus-visible { outline: 3px solid rgba(240, 111, 57, .55); outline-offset: 2px; }
.lg-submit[disabled] { opacity: .8; cursor: progress; }
.lg-help { margin: 20px 0 0; font-size: 13px; color: var(--lg-muted); text-align: center; line-height: 1.6; }
.lg-foot { margin-top: 24px; font-size: 12px; color: var(--lg-muted); text-align: center; }
.lg-foot a { color: var(--lg-green-dark); text-decoration: none; }
.lg-foot a:hover { text-decoration: underline; }

/* ---------- màn hình vừa / nhỏ ---------- */
@media (max-width: 1100px) {
  .lg-hero-copy h1 { font-size: 36px; }
  .lg-hero-inner { padding: 32px 36px 36px; }
}
@media (max-width: 860px) {
  .lg-shell { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .lg-hero-inner { min-height: 0; padding: 22px 22px 26px; }
  .lg-hero-copy { margin-top: 48px; }
  .lg-hero-copy h1 { font-size: 26px; }
  .lg-hero-copy p, .lg-hero-foot { display: none; }
  .lg-panel { justify-content: flex-start; padding: 28px 20px 20px; border-radius: 20px 20px 0 0; margin-top: -18px; position: relative; z-index: 2; }
  .lg-card { margin: 0; }
  .lg-foot { margin-top: auto; padding-top: 28px; }
  .lg-card-brand { display: none; }
  .lg-card h2 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) { .lg-submit, .lg-input input { transition: none; } }
