/* OBERNA WMS — Login (update 021): warm champagne brand panel + white form, OBERNA gold — layout of the OBERNA HRM login, softer colours (no hard black) */
:root {
  --brown: #4a3b27;          /* warm dark text instead of black */
  --brown-2: #6b5a41;
  --ink: #3d3122;
  --ink-2: #5a4b36;
  --muted: #8a7c66;
  --line: #ebe2d1;
  --field: #fbf8f2;
  --gold: #c49e5c;          /* OBERNA logo gold */
  --gold-2: #a7833f;
  --gold-3: #8c6c32;
  --error-bg: #fdecea; --error: #b42318; --error-line: #f5c2bd;
  --info-bg: #f3f3f0;  --info: #2b2b2b;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: #fff; color: var(--ink);
  font-family: 'Inter', 'Noto Sans Lao', system-ui, sans-serif; font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
body.lang-lo { font-family: 'Noto Sans Lao', 'Inter', system-ui, sans-serif; }

.login-shell { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 100vh; }

/* ---------- Brand panel (black) ---------- */
.brand-panel {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(160deg, #fffdf8 0%, #f8f0e1 52%, #efe1c6 100%);
  color: var(--brown); border-right: 1px solid var(--line); display: flex; align-items: center; justify-content: center; padding: 56px 48px 80px;
}
.bp-glow {                                   /* soft gold light behind the logo */
  position: absolute; z-index: -1; width: 620px; height: 620px; border-radius: 50%; top: -120px; left: 50%; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, 0) 65%);
  animation: glow 9s ease-in-out infinite alternate;
}
@keyframes glow { from { opacity: .55; transform: translateX(-50%) scale(.95); } to { opacity: 1; transform: translateX(-50%) scale(1.06); } }
.bp-waves {                                  /* the logo's wave lines, very faint */
  position: absolute; z-index: -1; left: 0; right: 0; bottom: -40px; width: 100%; height: 70%;
  fill: none; stroke: rgba(196, 158, 92, .28); stroke-width: 1.4;
}
.brand-panel::after {                        /* fine frame */
  content: ""; position: absolute; inset: 22px; border: 1px solid rgba(196, 158, 92, .28); border-radius: 18px; pointer-events: none;
}
.brand-inner { width: 100%; max-width: 560px; text-align: center; animation: rise .7s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.brand-logo { display: block; width: 290px; max-width: 70%; height: auto; margin: 0 auto; }
.hotel-line {
  margin: 30px 0 0; color: var(--gold-2); font-size: 13.5px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase;
}
.system-name {
  margin: 14px 0 0; font-size: clamp(34px, 3.6vw, 52px); line-height: 1.25; font-weight: 700; letter-spacing: -.005em; color: var(--brown);
}
.tagline { margin: 12px auto 0; max-width: 440px; color: var(--brown-2); font-size: 15.5px; line-height: 1.7; }

.clock-card {
  display: inline-flex; align-items: center; gap: 26px; margin-top: 34px; padding: 16px 30px;
  border: 1px solid rgba(196, 158, 92, .35); border-radius: 18px;
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(6px); box-shadow: 0 16px 36px rgba(140, 108, 50, .14);
}
.cc-time { display: flex; align-items: baseline; gap: 10px; padding-right: 26px; border-right: 1px solid rgba(196, 158, 92, .35); }
.cc-lbl { font-size: 14px; color: var(--muted); }
.cc-time b { font-family: 'Cormorant Garamond', 'Inter', serif; font-size: 54px; font-weight: 600; line-height: 1; color: var(--brown); font-variant-numeric: tabular-nums; }
.cc-time small { font-family: 'Cormorant Garamond', serif; font-size: 24px; color: var(--gold-2); font-variant-numeric: tabular-nums; }
.cc-date { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; }
.cc-date b { font-size: 17px; font-weight: 600; color: var(--brown); }
.cc-date span { font-size: 15px; color: var(--brown-2); }

.features { list-style: none; margin: 34px auto 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 560px; }
.features li {
  display: inline-flex; align-items: center; gap: 9px; padding: 9px 15px; border-radius: 999px;
  border: 1px solid rgba(196, 158, 92, .35); background: rgba(255, 255, 255, .6); color: var(--brown-2); font-size: 14px;
}
.features svg { width: 17px; height: 17px; fill: none; stroke: var(--gold-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.brand-foot { position: absolute; bottom: 38px; left: 0; right: 0; text-align: center; margin: 0; font-size: 12.5px; color: var(--muted); letter-spacing: .06em; }

/* ---------- Form panel (white) ---------- */
.form-panel { display: flex; align-items: center; justify-content: center; padding: 48px 32px; background: #fff; }
.form-wrap { width: 100%; max-width: 420px; animation: rise .7s .1s ease both; }
.fp-top { display: flex; align-items: center; justify-content: flex-end; margin-bottom: 34px; }
.mobile-logo { display: none; }
.lang-pill { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.lang-pill a { padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--muted); text-decoration: none; transition: .15s; }
.lang-pill a.active { background: var(--gold); color: #fff; }
.lang-pill a:not(.active):hover { color: var(--ink); }

.eyebrow { margin: 0; color: var(--gold-2); font-size: 13.5px; font-weight: 600; letter-spacing: .12em; }
.title { margin: 6px 0 0; font-size: 34px; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
.sub { margin: 6px 0 26px; color: var(--muted); font-size: 15px; }

.alert { padding: 12px 16px; border-radius: 12px; font-size: 14.5px; margin-bottom: 20px; border: 1px solid transparent; }
.alert-error { background: var(--error-bg); color: var(--error); border-color: var(--error-line); }
.alert-info { background: var(--info-bg); color: var(--info); border-color: var(--line); }

.field { display: block; margin-bottom: 18px; }
.label { display: block; font-size: 14px; color: var(--ink-2); margin-bottom: 7px; font-weight: 500; }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap > svg { position: absolute; left: 15px; width: 18px; height: 18px; fill: #b9ab92; pointer-events: none; transition: fill .15s; }
.input-wrap input {
  width: 100%; height: 54px; padding: 0 74px 0 46px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--field); font: inherit; font-size: 16px; color: var(--ink); outline: none; transition: border-color .15s, box-shadow .15s, background .15s;
}
.input-wrap input::placeholder { color: #b5a993; }
.input-wrap input:focus { background: #fff; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(196, 158, 92, .18); }
.input-wrap:focus-within > svg { fill: var(--gold-2); }
.toggle-pw {
  position: absolute; right: 8px; height: 38px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent;
  font: inherit; font-size: 13.5px; font-weight: 600; color: var(--muted); cursor: pointer;
}
.toggle-pw:hover { background: #f3ead9; color: var(--ink); }
.caps { display: block; margin-top: 6px; font-size: 13px; color: var(--gold-2); font-weight: 600; }
.caps[hidden] { display: none; }

.check { display: inline-flex; align-items: center; gap: 9px; font-size: 14.5px; color: var(--ink-2); cursor: pointer; margin: 2px 0 22px; }
.check input { width: 18px; height: 18px; accent-color: var(--gold-2); }

.btn-main {
  width: 100%; height: 56px; border: 0; border-radius: 12px; background: linear-gradient(135deg, #c9a462 0%, var(--gold-3) 100%); color: #fff;
  font: inherit; font-size: 16.5px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px;
  box-shadow: 0 10px 24px rgba(140, 108, 50, .28); text-shadow: 0 1px 1px rgba(80, 58, 20, .25); transition: transform .12s, box-shadow .15s, background .15s;
}
.btn-main svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.btn-main:hover { background: linear-gradient(135deg, #bf9853 0%, #7d5f2a 100%); box-shadow: 0 14px 30px rgba(140, 108, 50, .34); }
.btn-main:hover svg { transform: translateX(3px); }
.btn-main:active { transform: translateY(1px); }
.btn-main:disabled { opacity: .75; cursor: progress; }

.secure-note { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 18px 0 0; font-size: 13px; color: var(--muted); }
.secure-note svg { width: 15px; height: 15px; fill: var(--gold-2); flex: none; }
.copyright { margin: 40px 0 0; text-align: center; font-size: 13px; color: var(--muted); line-height: 1.8; }
.dev-by { color: var(--gold-2); }

/* ---------- Tablet / phone ---------- */
@media (max-width: 980px) {
  .login-shell { grid-template-columns: 1fr; }
  .brand-panel { padding: 40px 24px 64px; min-height: 0; }
  .brand-panel::after { inset: 12px; }
  .brand-logo { width: 200px; }
  .hotel-line { margin-top: 20px; font-size: 12px; letter-spacing: .2em; }
  .system-name { font-size: 30px; }
  .clock-card { margin-top: 22px; padding: 12px 20px; gap: 16px; }
  .cc-time { padding-right: 16px; }
  .cc-time b { font-size: 40px; }
  .features { display: none; }
  .brand-foot { bottom: 24px; }
  .form-panel { padding: 36px 16px 40px; }
  .fp-top { margin-bottom: 22px; }
}
@media (max-width: 520px) {
  .brand-panel { padding: 30px 16px 54px; }
  .tagline { display: none; }
  .cc-lbl { display: none; }
  .cc-time b { font-size: 34px; }
  .cc-date b { font-size: 15px; } .cc-date span { font-size: 13.5px; }
  .title { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) { .bp-glow, .brand-inner, .form-wrap { animation: none; } }
body.lang-lo .eyebrow { letter-spacing: .02em; font-size: 14px; }

/* update 021b: big title like the OBERNA HRM login (Lao serif, two lines) */
.system-name { font-size: clamp(42px, 4.4vw, 64px); line-height: 1.32; font-weight: 700; margin-top: 18px; }
body.lang-lo .system-name { font-family: 'Noto Serif Lao', 'Noto Sans Lao', serif; font-weight: 600; letter-spacing: 0; }
.system-name .sn-2 { display: block; }
.tagline { font-size: 18px; max-width: 520px; margin-top: 16px; color: var(--brown-2); }
.cc-time b { font-size: 60px; font-weight: 500; }
@media (max-width: 980px) { .system-name { font-size: 36px; } .tagline { font-size: 16px; } .cc-time b { font-size: 42px; } }
@media (max-width: 520px) { .system-name { font-size: 32px; } .cc-time b { font-size: 36px; } }

/* =====================================================================
   update 031 — OBERNA colour tokens: deep-teal brand panel + gold logo, white form, brass button
   ===================================================================== */
:root {
  --brown: #F4F1E8; --brown-2: #CADBD9;               /* text on the teal panel */
  --ink: #1A2B29; --ink-2: #20514E; --muted: #566B69;
  --line: #D3DEDC; --field: #F4F8F7;
  --gold: #B98A2E; --gold-2: #8A6420; --gold-3: #8A6420;
}
body { font-family: 'Jost', 'Noto Sans Lao', system-ui, sans-serif; color: var(--ink); }
body.lang-lo { font-family: 'Noto Sans Lao', 'Jost', system-ui, sans-serif; }
.brand-panel { background: radial-gradient(120% 140% at 0% 0%, #3C6D67 0%, #20514E 55%, #114038 100%); color: var(--brown); border-right: 0; }
.bp-glow { background: radial-gradient(circle, rgba(214, 176, 110, .20) 0%, rgba(214, 176, 110, 0) 65%); }
.bp-waves { stroke: rgba(214, 176, 110, .22); }
.brand-panel::after { border-color: rgba(214, 176, 110, .30); }
.hotel-line { color: #E9D7AE; }
.system-name { color: #fff; }
body:not(.lang-lo) .system-name { font-family: 'Marcellus', serif; font-weight: 400; }
.tagline { color: #CADBD9; }
.clock-card { background: rgba(17, 64, 56, .45); border-color: rgba(214, 176, 110, .35); box-shadow: 0 16px 36px rgba(0, 0, 0, .22); }
.cc-time { border-right-color: rgba(214, 176, 110, .35); }
.cc-lbl { color: #CADBD9; }
.cc-time b { font-family: 'Marcellus', serif; font-weight: 400; color: #fff; }
.cc-time small { font-family: 'Marcellus', serif; color: #D6B06E; }
.cc-date b { color: #fff; } .cc-date span { color: #CADBD9; }
.brand-foot { color: #CADBD9; }
.title { color: #20514E; font-family: 'Marcellus', 'Noto Serif Lao', serif; font-weight: 600; font-synthesis: none; }
.eyebrow, .caps, .dev-by { color: #8A6420; }
.lang-pill a.active { background: #20514E; }
.input-wrap > svg { fill: #889D9E; }
.input-wrap input::placeholder { color: #9AAEAC; }
.input-wrap input:focus { border-color: #3C6D67; box-shadow: 0 0 0 4px rgba(60, 109, 103, .18); }
.input-wrap:focus-within > svg { fill: #20514E; }
.toggle-pw:hover { background: #E4EDEB; color: #20514E; }
.check input { accent-color: #20514E; }
.btn-main { background: #B98A2E; box-shadow: 0 10px 24px rgba(185, 138, 46, .30); text-shadow: none; font-weight: 700; }
.btn-main:hover { background: #A47A26; box-shadow: 0 14px 30px rgba(185, 138, 46, .36); }
.secure-note svg { fill: #3C6D67; }
.alert-info { background: #F4F8F7; color: #20514E; }
