:root {
  --brand-950: #071d42;
  --brand-900: #092f73;
  --brand-800: #0c438f;
  --brand-600: #176cc4;
  --brand-500: #2689e7;
  --brand-100: #eaf4ff;
  --cyan-400: #54d0ec;
  --ink-900: #172033;
  --ink-700: #47546a;
  --ink-500: #79849a;
  --line: #dfe6ef;
  --surface: #ffffff;
  --surface-muted: #f5f8fc;
  --danger: #c93d4b;
  --shadow: 0 24px 70px rgba(7, 29, 66, 0.14);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--surface-muted); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink-900);
  font-family: "Noto Sans TC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
a { color: inherit; }

.employee-login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(420px, 1.04fr) minmax(480px, .96fr);
  background: var(--surface);
}

.employee-login__brand {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100vh;
  padding: clamp(40px, 5.5vw, 84px);
  color: #fff;
  background:
    radial-gradient(circle at 18% 18%, rgba(84, 208, 236, .23), transparent 29%),
    linear-gradient(145deg, var(--brand-950) 0%, var(--brand-900) 54%, #0c5bad 100%);
}
.employee-login__brand-inner {
  position: relative;
  z-index: 2;
  width: min(620px, 100%);
  min-height: calc(100vh - clamp(80px, 11vw, 168px));
  display: flex;
  flex-direction: column;
}
.brand-logo { display: inline-flex; align-self: flex-start; width: 164px; filter: brightness(0) invert(1); }
.brand-logo img { display: block; width: 100%; height: auto; }
.brand-copy { margin: auto 0; padding: 72px 0 60px; }
.brand-copy__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  color: #8ee8fb;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .2em;
}
.brand-copy__eyebrow::before { content: ""; width: 34px; height: 2px; background: currentColor; }
.brand-copy h1 {
  margin: 0;
  font-size: clamp(36px, 4.3vw, 64px);
  line-height: 1.28;
  letter-spacing: -.035em;
  font-weight: 800;
}
.brand-copy p {
  max-width: 510px;
  margin: 28px 0 0;
  color: rgba(255,255,255,.76);
  font-size: 17px;
  line-height: 1.9;
}
.brand-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.brand-features li {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 16px;
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(8px);
}
.brand-features__icon {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #8ee8fb;
  background: rgba(84,208,236,.12);
}
.brand-features__icon svg { width: 22px; fill: currentColor; }
.brand-features strong, .brand-features small { display: block; }
.brand-features strong { font-size: 14px; }
.brand-features small { margin-top: 4px; color: rgba(255,255,255,.62); font-size: 12px; }
.brand-decoration { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.brand-decoration__grid {
  position: absolute;
  inset: 0;
  opacity: .12;
  background-image: linear-gradient(rgba(255,255,255,.15) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.15) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom right, rgba(0,0,0,.8), transparent 72%);
}
.brand-decoration__orb { position: absolute; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; }
.brand-decoration__orb--one { width: 430px; height: 430px; right: -190px; top: 12%; }
.brand-decoration__orb--two { width: 280px; height: 280px; right: -60px; top: 22%; }

.employee-login__panel {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 48px clamp(30px, 6vw, 100px);
  background:
    radial-gradient(circle at 80% 10%, rgba(38,137,231,.09), transparent 25%),
    var(--surface);
}
.login-panel { width: min(460px, 100%); }
.login-panel__mobile-logo { display: none; width: 146px; margin: 0 auto 44px; }
.login-panel__mobile-logo img { width: 100%; }
.login-panel__header { margin-bottom: 36px; }
.login-panel__badge {
  display: inline-flex;
  margin-bottom: 17px;
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--brand-600);
  background: var(--brand-100);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
}
.login-panel__header h2 { margin: 0; font-size: clamp(30px, 3vw, 40px); line-height: 1.25; letter-spacing: -.035em; }
.login-panel__header p { margin: 13px 0 0; color: var(--ink-500); font-size: 15px; }
.login-form { display: grid; gap: 22px; }
.form-field label { display: block; margin-bottom: 10px; color: var(--ink-700); font-size: 14px; font-weight: 600; }
.form-control { position: relative; }
.form-control__icon {
  position: absolute;
  left: 18px;
  top: 50%;
  width: 21px;
  height: 21px;
  transform: translateY(-50%);
  color: #8794a8;
  pointer-events: none;
}
.form-control__icon svg, .password-toggle svg { width: 100%; height: 100%; fill: currentColor; }
.form-control input {
  width: 100%;
  height: 56px;
  padding: 0 52px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: 0;
  color: var(--ink-900);
  background: var(--surface);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.form-control input::placeholder { color: #a2acbb; }
.form-control input:hover { border-color: #c8d3e1; }
.form-control input:focus { border-color: var(--brand-500); box-shadow: 0 0 0 4px rgba(38,137,231,.11); }
.form-field.is-invalid input { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(201,61,75,.08); }
.form-field__error { min-height: 18px; margin: 6px 0 -18px; color: var(--danger); font-size: 12px; }
.password-toggle {
  position: absolute;
  top: 50%;
  right: 14px;
  width: 38px;
  height: 38px;
  padding: 9px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 9px;
  color: #7f8da3;
  background: transparent;
  cursor: pointer;
}
.password-toggle:hover { color: var(--brand-600); background: var(--brand-100); }
.password-toggle__hide { display: none; }
.password-toggle[aria-pressed="true"] .password-toggle__show { display: none; }
.password-toggle[aria-pressed="true"] .password-toggle__hide { display: block; }
.login-form__options { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.login-form__options a { color: var(--brand-600); font-size: 13px; font-weight: 600; text-decoration: none; }
.login-form__options a:hover { text-decoration: underline; }
.checkbox { display: inline-flex; align-items: center; gap: 9px; color: var(--ink-700); font-size: 13px; cursor: pointer; }
.checkbox input { position: absolute; opacity: 0; pointer-events: none; }
.checkbox__box {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  background: #fff;
  transition: .2s ease;
}
.checkbox input:checked + .checkbox__box { border-color: var(--brand-600); background: var(--brand-600); }
.checkbox input:checked + .checkbox__box::after { content: ""; width: 7px; height: 4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px,-1px); }
.checkbox input:focus-visible + .checkbox__box { box-shadow: 0 0 0 4px rgba(38,137,231,.12); }
.form-message { display: none; margin-top: -4px; padding: 12px 14px; border-radius: 10px; font-size: 13px; line-height: 1.6; }
.form-message.is-visible { display: block; }
.form-message.is-error { color: #9b2430; background: #fff0f1; }
.form-message.is-success { color: #17643a; background: #ebf8f1; }
.login-submit {
  width: 100%;
  min-height: 57px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 2px;
  padding: 0 22px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(100deg, var(--brand-900), var(--brand-500));
  box-shadow: 0 14px 28px rgba(12,67,143,.22);
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.login-submit svg { width: 20px; fill: currentColor; transition: transform .2s ease; }
.login-submit:hover { transform: translateY(-2px); box-shadow: 0 18px 34px rgba(12,67,143,.3); filter: saturate(1.06); }
.login-submit:hover svg { transform: translateX(3px); }
.login-submit:active { transform: translateY(0); }
.login-support {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 32px;
  padding: 16px 18px;
  border: 1px solid #e6ebf2;
  border-radius: 12px;
  background: var(--surface-muted);
}
.login-support > span { flex: 0 0 35px; width: 35px; height: 35px; display: grid; place-items: center; border-radius: 50%; color: var(--brand-600); background: var(--brand-100); }
.login-support svg { width: 18px; fill: currentColor; }
.login-support p { margin: 0; color: var(--ink-500); font-size: 12px; line-height: 1.65; }
.login-support a { color: var(--ink-700); font-weight: 600; text-decoration: none; }
.login-panel__footer { display: flex; justify-content: space-between; gap: 16px; margin-top: 38px; padding-top: 22px; border-top: 1px solid #edf0f5; color: #909bad; font-size: 11px; }
.login-panel__footer a { color: var(--brand-600); text-decoration: none; }

@media (max-width: 980px) {
  .employee-login { grid-template-columns: 1fr; background: linear-gradient(155deg, var(--brand-950), var(--brand-800)); }
  .employee-login__brand { display: none; }
  .employee-login__panel { min-height: 100vh; padding: 48px 24px; background: radial-gradient(circle at 80% 5%, rgba(84,208,236,.2), transparent 26%), linear-gradient(155deg, var(--brand-950), var(--brand-800)); }
  .login-panel { padding: 38px; border-radius: 24px; background: #fff; box-shadow: var(--shadow); }
  .login-panel__mobile-logo { display: block; }
}

@media (max-width: 560px) {
  .employee-login__panel { align-items: stretch; padding: 0; background: #fff; }
  .login-panel { width: 100%; min-height: 100vh; padding: 36px 22px 26px; border-radius: 0; box-shadow: none; }
  .login-panel__mobile-logo { margin-bottom: 54px; }
  .login-panel__header { margin-bottom: 30px; }
  .login-panel__header h2 { font-size: 30px; }
  .login-form__options { align-items: flex-start; }
  .login-panel__footer { flex-direction: column; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
