:root {
  --login-navy: #102746;
  --login-ink: #162846;
  --login-muted: #657b9d;
  --login-line: #d5e1ef;
  --login-blue: #3777e8;
  --login-blue-dark: #285fc8;
  --login-teal: #4fae9f;
  --login-gold: #d9b45e;
  --login-page: #f4f7fb;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body { min-height: 100vh; color: var(--login-ink); background: var(--login-page); font-family: "Poppins", "Segoe UI", system-ui, sans-serif; }
button, input { font: inherit; }
button { cursor: pointer; }

.login-topbar { display: flex; align-items: center; justify-content: space-between; min-height: 82px; padding: 0 clamp(18px, 5vw, 72px); color: #fff; background: var(--login-navy); }
.login-kiosk-brand { display: inline-flex; align-items: center; gap: 14px; color: inherit; text-decoration: none; }
.login-kiosk-brand img { width: 78px; height: 52px; padding: 0; border: 0; border-radius: 0; object-fit: contain; background: transparent; }
.login-kiosk-brand span { display: grid; gap: 2px; }
.login-kiosk-brand strong { font-size: 18px; letter-spacing: -.02em; }
.login-kiosk-brand small, .login-topbar-label { color: #b9cbe2; font-size: 11px; letter-spacing: .09em; text-transform: uppercase; }
.login-topbar-label { font-weight: 800; }

.login-main { display: grid; place-items: center; min-height: calc(100dvh - 82px); padding: 12px 18px 16px; }
.login-card { width: min(580px, 100%); padding: 22px 36px 18px; border: 1px solid #d5e1ef; border-radius: 18px; background: #fff; box-shadow: 0 22px 55px rgba(21, 45, 79, .12); }
.login-heading { text-align: center; }
.login-eyebrow { color: var(--login-gold); font-size: 12px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.login-heading h1 { margin-top: 5px; color: var(--login-ink); font-size: clamp(1.9rem, 4vw, 2.35rem); letter-spacing: -.055em; line-height: 1.05; }
.login-subtitle { max-width: 390px; margin: 5px auto 0; color: var(--login-muted); font-size: 14px; line-height: 1.35; }

.hotel-login-identity { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 12px 0 12px; padding: 0; color: inherit; text-align: center; }
.hotel-login-logo { width: 132px; height: 74px; flex: 0 0 auto; padding: 0; border: 0; border-radius: 0; object-fit: contain; background: transparent; }
.hotel-login-copy { display: block; min-width: 0; }
.hotel-login-copy strong { color: var(--login-ink); font-size: 18px; line-height: 1.2; }
.hotel-login-copy small { display: none; }
.hotel-login-arrow { display: none; }

.notice { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; padding: 8px 11px; border: 1px solid var(--login-line); border-radius: 12px; color: #40536d; background: #f8fbff; font-size: 13px; font-weight: 700; line-height: 1.35; }
.notice-icon { display: grid; width: 25px; height: 25px; flex: 0 0 auto; place-items: center; border-radius: 8px; color: #fff; background: #667a97; font-size: 13px; font-weight: 900; }
.notice-error { border-color: #f2d2d7; color: #9f3443; background: #fff6f7; }
.notice-error .notice-icon { background: #c94d61; }
.notice-success { border-color: #cce9df; color: #277663; background: #f2fbf8; }
.notice-success .notice-icon { background: #3d9a84; }

.login-form { display: flex; flex-direction: column; gap: 10px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.input-label { color: #324964; font-size: 12px; font-weight: 800; letter-spacing: .03em; }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-icon { position: absolute; left: 15px; width: 19px; height: 19px; fill: none; stroke: #7b90ac; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; pointer-events: none; }
.input-wrap input { width: 100%; min-height: 44px; padding: 0 15px 0 45px; border: 1px solid var(--login-line); border-radius: 12px; outline: none; color: var(--login-ink); background: #fbfdff; font-size: 14px; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.input-wrap input::placeholder { color: #9aabc0; }
.input-wrap input:hover { border-color: #c1d1e4; }
.input-wrap input:focus { border-color: var(--login-blue); background: #fff; box-shadow: 0 0 0 4px rgba(55,119,232,.13); }
.password-wrap input { padding-right: 50px; }
.password-toggle { position: absolute; right: 9px; display: grid; width: 34px; height: 34px; place-items: center; border: 0; border-radius: 9px; color: #7186a2; background: transparent; }
.password-toggle:hover, .password-toggle:focus-visible { color: var(--login-blue); background: #eaf2ff; outline: none; }
.eye-icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.eye-icon-hide { display: none; }
.password-toggle.is-visible .eye-icon-show { display: none; }
.password-toggle.is-visible .eye-icon-hide { display: block; }
.btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 11px; width: 100%; min-height: 44px; margin-top: 1px; border: 0; border-radius: 12px; color: #fff; background: var(--login-blue); box-shadow: 0 12px 22px rgba(55,119,232,.22); font-size: 14px; font-weight: 800; transition: background .18s ease, transform .18s ease, box-shadow .18s ease; }
.btn-primary svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.btn-primary:hover { background: var(--login-blue-dark); box-shadow: 0 15px 26px rgba(55,119,232,.28); transform: translateY(-1px); }
.btn-primary:focus-visible { outline: 3px solid rgba(55,119,232,.25); outline-offset: 3px; }
.setup-back { margin-top: 8px; text-align: center; font-size: 12px; }
.setup-back a { color: var(--login-blue); font-weight: 700; }
.login-security { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 10px; color: #8a9bb0; font-size: 11px; line-height: 1.45; text-align: center; }
.login-security svg { width: 16px; height: 16px; flex: 0 0 auto; fill: none; stroke: var(--login-teal); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }

@media (max-width: 560px) {
  .login-topbar { min-height: 68px; padding: 0 18px; }
  .login-kiosk-brand img { width: 66px; height: 44px; }
  .login-topbar-label { display: none; }
  .login-main { min-height: calc(100dvh - 68px); padding: 12px 14px 16px; }
  .login-card { padding: 20px 22px 18px; border-radius: 16px; }
  .hotel-login-logo { width: 112px; height: 66px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}
