/* Login page — match design reference (split hero + form card) */
.tt-login-body { margin: 0; min-height: 100vh; font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif; }

.tt-login-page {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.9fr);
  min-height: 100vh;
}

.tt-login-hero {
  position: relative;
  color: #fff;
  background:
    linear-gradient(165deg, rgba(11,31,58,0.88) 0%, rgba(11,31,58,0.55) 42%, rgba(11,31,58,0.72) 100%),
    url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1600&q=80") center/cover no-repeat;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}
.tt-login-hero-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(196,165,116,0.18), transparent 55%);
  pointer-events: none;
}
.tt-login-hero-inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  justify-content: center;
  padding: 48px 56px 40px;
  width: 100%;
  max-width: 640px;
}

.tt-login-brand, .tt-login-card-brand {
  display: flex; align-items: center; gap: 12px; margin-bottom: 28px;
}
.tt-login-logo {
  width: 46px; height: 46px; border-radius: 12px;
  background: linear-gradient(145deg, #E8D5B5, #C4A574);
  color: #0B1F3A; font-weight: 800; font-size: 16px;
  display: grid; place-items: center; letter-spacing: 0.02em;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}
.tt-login-logo.sm { width: 40px; height: 40px; font-size: 14px; }
.tt-login-brand-name {
  font-size: 20px; font-weight: 800; letter-spacing: 0.06em; color: #fff;
}
.tt-login-brand-name.dark { color: #0B1F3A; }
.tt-login-brand-sub { font-size: 13px; color: rgba(255,255,255,0.82); margin-top: 2px; }
.tt-login-brand-sub.dark { color: #64748B; }

.tt-login-english {
  margin: 0 0 14px; font-size: 14px; letter-spacing: 0.04em;
  color: rgba(232,213,181,0.95);
}
.tt-login-headline {
  margin: 0 0 14px;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.25; font-weight: 800; color: #fff;
}
.tt-login-headline span { color: #C4A574; }
.tt-login-lead {
  margin: 0 0 28px; color: rgba(248,250,252,0.82);
  font-size: 15px; line-height: 1.7;
}

.tt-login-features {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 12px;
}
.tt-login-features li {
  display: flex; align-items: center; gap: 12px;
  font-size: 14px; color: rgba(255,255,255,0.92);
}
.tt-login-fi {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(196,165,116,0.45);
  color: #E8D5B5;
  display: grid; place-items: center; flex-shrink: 0;
}
.tt-login-foot {
  margin-top: auto; padding-top: 40px;
  font-size: 13px; color: rgba(255,255,255,0.65); letter-spacing: 0.02em;
}

.tt-login-panel {
  background-color: #EDF2F8;
  background-image: url("login-geo.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 32px 28px 28px;
  position: relative;
}
.tt-login-lang {
  position: absolute; top: 20px; right: 24px;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: #475569;
  background: #fff; border: 1px solid #E2E8F0; border-radius: 999px;
  padding: 6px 12px;
}
.tt-login-caret { font-size: 11px; opacity: 0.7; }

.tt-login-card {
  width: min(420px, 100%);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(226,232,240,0.9);
  padding: 32px 30px 28px;
}
.tt-login-card h2 {
  margin: 8px 0 6px; font-size: 28px; color: #0F172A; font-weight: 800;
}
.tt-login-hint { margin: 0 0 20px; color: #64748B; font-size: 14px; }

.tt-login-form { display: grid; gap: 12px; }
.tt-login-field {
  position: relative; display: block;
}
.tt-login-field input {
  width: 100%; box-sizing: border-box;
  border: 1px solid #D9E2EC; border-radius: 10px;
  padding: 13px 42px 13px 42px;
  font-size: 15px; line-height: normal; background: #fff; color: #0F172A;
  font-family: "Microsoft JhengHei UI", "Microsoft JhengHei", "PingFang TC", sans-serif;
}
.tt-login-field input:focus {
  outline: none; border-color: #C4A574;
  box-shadow: 0 0 0 3px rgba(196,165,116,0.2);
}
.tt-login-field-icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: #94A3B8; display: grid; place-items: center;
}
.tt-login-eye {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  border: none; background: transparent; color: #94A3B8;
  width: 36px; height: 36px; cursor: pointer; border-radius: 8px;
}
.tt-login-eye:hover { background: #F1F5F9; color: #475569; }

.tt-login-row {
  display: flex; justify-content: space-between; align-items: center;
  margin: 2px 0 6px; font-size: 13px;
}
.tt-login-remember { color: #475569; display: inline-flex; gap: 6px; align-items: center; }
.tt-login-forgot { color: #3B82C4; text-decoration: none; }
.tt-login-forgot:hover { text-decoration: underline; }

.tt-login-submit {
  width: 100%; border: none; cursor: pointer;
  border-radius: 10px; padding: 13px 16px;
  font-size: 16px; font-weight: 700; color: #fff;
  background: linear-gradient(90deg, #C4A574 0%, #A8844F 100%);
  box-shadow: 0 8px 20px rgba(168,132,79,0.28);
}
.tt-login-submit:hover { filter: brightness(1.05); }

.tt-login-panel.tt-reg-panel {
  justify-content: flex-start;
  overflow-y: auto;
  padding-top: 72px;
}
.tt-login-card.tt-reg-card { width: min(480px, 100%); }
.tt-reg-field { display: block; }
.tt-reg-field span {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}
.tt-reg-field input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #D9E2EC;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 15px;
  background: #fff;
  color: #0F172A;
  font-family: "Microsoft JhengHei UI", "Microsoft JhengHei", "PingFang TC", sans-serif;
}
.tt-reg-field input:focus {
  outline: none;
  border-color: #C4A574;
  box-shadow: 0 0 0 3px rgba(196,165,116,0.2);
}
.tt-login-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}
.tt-login-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #D9E2EC;
  border-radius: 10px;
  padding: 13px 16px;
  font-size: 16px;
  font-weight: 700;
  color: #334155;
  background: #fff;
  text-decoration: none;
}
.tt-login-secondary:hover { background: #F8FAFC; border-color: #C4A574; color: #0F172A; }

.tt-reg-section {
  margin: 6px 0 2px;
  padding-top: 10px;
  border-top: 1px solid #E2E8F0;
}
.tt-reg-section h3 {
  margin: 0 0 4px;
  font-size: 15px;
  color: #0F172A;
}
.tt-reg-section p {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.55;
  color: #64748B;
}

.tt-login-secure {
  width: min(420px, 100%);
  margin-top: 18px;
  display: flex; gap: 10px; align-items: flex-start;
  background: #EAF3FB; color: #1E4B78;
  border-radius: 12px; padding: 12px 14px; font-size: 12px; line-height: 1.55;
}
.tt-login-secure svg { flex-shrink: 0; margin-top: 1px; color: #3B82C4; }

.tt-login-card .flash { margin-bottom: 12px; }

@media (max-width: 960px) {
  .tt-login-page { grid-template-columns: 1fr; }
  .tt-login-hero { min-height: 42vh; }
  .tt-login-hero-inner { padding: 28px 22px 24px; }
  .tt-login-panel { padding: 24px 16px 28px; }
  .tt-login-lang { position: static; margin: 0 0 14px auto; }
  .tt-login-foot { padding-top: 24px; }
}

/* Login page — Leanexus 社務匯 */
body.lx-login { background: #3a2d9a; }
.lx-page {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  background: #5b4db8 url("../images/leanexus-login-background-v2.jpg") center / cover no-repeat;
}
.lx-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 28px 56px 0;
  color: #fff;
}
.lx-wordmark {
  width: min(340px, 78%);
  height: auto;
  object-fit: contain;
  align-self: flex-start;
}
.lx-copy { margin-top: 5.5vh; max-width: 720px; }
.lx-copy h1 {
  margin: 0;
  font-size: clamp(30px, 2.7vw, 46px);
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: .01em;
}
.lx-copy h1 span { display: block; white-space: nowrap; }
.lx-rule {
  display: block;
  width: 64px;
  height: 4px;
  margin: 26px 0 22px;
  border-radius: 4px;
  background: #f08a6a;
}
.lx-copy p {
  margin: 0;
  font-size: 18px;
  color: rgba(255,255,255,.9);
}
.lx-panel {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 6vw 64px;
}
.lx-form-wrap {
  width: min(400px, 100%);
  margin: 0;
  background: rgba(255,252,255,.96);
  border-radius: 22px;
  box-shadow: 0 22px 50px rgba(48, 32, 110, .18);
  padding: 26px 28px 22px;
  transform: translateX(-6vw);
}
.lx-card-rule {
  display: block;
  width: 36px;
  height: 4px;
  margin-bottom: 16px;
  border-radius: 4px;
  background: #f08a6a;
}
.lx-form-wrap h2 {
  margin: 0;
  text-align: left;
  color: #2a2468;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: .02em;
}
.lx-lead {
  margin: 6px 0 22px;
  text-align: left;
  color: #8a84a4;
  font-size: 14px;
}
.lx-form { display: grid; gap: 16px; }
.lx-field span { display: block; }
.lx-field > span:first-child {
  margin-bottom: 8px;
  color: #2a2458;
  font-size: 14px;
  font-weight: 700;
}
.lx-field input {
  width: 100%;
  box-sizing: border-box;
  height: 48px;
  border: 1px solid #e4dff3;
  border-radius: 10px;
  padding: 0 14px;
  background: #fff;
  color: #1c2454;
  font-size: 15px;
  font-family: "Microsoft JhengHei UI", "Microsoft JhengHei", "PingFang TC", sans-serif;
}
.lx-field input:focus {
  outline: none;
  border-color: #7c6cf0;
  box-shadow: 0 0 0 3px rgba(124,108,240,.16);
}
.lx-control { position: relative; display: block; }
.lx-control input { padding-right: 44px; }
.lx-eye {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #9a94b0;
  cursor: pointer;
}
.lx-eye:hover { background: #f4f1fb; color: #5b4ee0; }
.lx-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
}
.lx-remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #4a4568;
}
.lx-remember input { accent-color: #5b4ee0; }
.lx-row a, .lx-switch a { color: #5b4ee0; text-decoration: none; font-weight: 700; }
.lx-row a:hover, .lx-switch a:hover { text-decoration: underline; }
.lx-submit {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 12px;
  background: #3d2f96;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .08em;
  cursor: pointer;
}
.lx-submit:hover { background: #32277f; }
.lx-switch { margin: 16px 0 0; text-align: center; color: #6f6a86; font-size: 13px; }
.lx-legal {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  margin: 0;
  text-align: center;
  color: rgba(90, 78, 140, .72);
  font-size: 13px;
}
.lx-form-wrap .flash { margin-bottom: 12px; }
@media (max-width: 960px) {
  .lx-page { grid-template-columns: 1fr; background-position: left center; }
  .lx-hero { min-height: auto; padding: 28px 22px 8px; }
  .lx-copy { margin-top: 28px; }
  .lx-copy h1 span { white-space: normal; }
  .lx-panel { min-height: auto; padding: 12px 16px 64px; }
  .lx-form-wrap { transform: none; }
}
