/* Lyrica login only; homepage tokens, fonts, navigation and footer are reused. */
.lyrica-login-page { font-family: "Noto Sans TC", "Lyrica TC", "PingFang TC", sans-serif; }
.lyrica-login-page .home-header { position: relative; background: var(--navy); }
.auth-hero { position: relative; overflow: hidden; padding: 3.5rem 0 6rem; background: var(--navy); color: #fff; }
.auth-hero::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 2% 100%, #0646ff55, transparent 55%), radial-gradient(ellipse at 75% 12%, #126cf52b, transparent 58%); }
.auth-hero::after { content: ''; position: absolute; width: 75%; height: 17rem; bottom: -12rem; left: -10%; border: 1px solid #60a4ff50; border-radius: 50%; box-shadow: 0 -18px 100px #0646ff40; transform: rotate(-15deg); pointer-events: none; }
.auth-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: clamp(3rem, 6vw, 7rem); align-items: center; max-width: 1500px; }
.auth-intro { padding-block: 1rem; min-width: 0; }
.auth-eyebrow { color: #c4d7ff; font-size: .94rem; letter-spacing: .1em; font-weight: 600; margin-bottom: 1.8rem !important; }
.auth-eyebrow span { padding-inline: .5rem; color: #6482b9; }
.auth-intro .home-title { font-size: clamp(2.8rem, 1.6rem + 3vw, 4.9rem); line-height: 1.3; letter-spacing: -.025em; }
.auth-intro .home-title em { color: #78cdff; }
.auth-lead { color: #c2d1ee; font-size: 1.1rem; line-height: 1.85; margin-top: 1.8rem !important; max-width: 33em; }
.auth-tags { display: flex; flex-wrap: wrap; gap: .65rem; padding: 0; margin: 1.65rem 0 2.6rem; list-style: none; }
.auth-tags li { border: 1px solid #ffffff2b; background: #ffffff08; border-radius: 99px; padding: .5rem .9rem; font-size: .88rem; color: #dce7ff; }
.auth-back { display: inline-flex; gap: 1.2rem; align-items: center; min-height: 44px; font-size: 1rem; font-weight: 600; }
.auth-back:hover { color: #78cdff; }
.auth-card { min-width: 0; background: #fff; color: var(--ink); border: 1px solid #ffffff4d; border-radius: 2rem; padding: 2.6rem; box-shadow: 0 28px 80px #0003; }
.auth-card-eyebrow { color: var(--blue); font-size: .85rem; letter-spacing: .06em; font-weight: 700; margin-bottom: .65rem !important; }
.auth-card h2 { font-size: 1.9rem; line-height: 1.4; letter-spacing: -.025em; }
.auth-card-lead { color: var(--muted); font-size: .94rem; margin: .6rem 0 1.7rem !important; line-height: 1.7; }
.login-form { display: flex; flex-direction: column; gap: 1.1rem; }
.form-field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .5rem; }
.form-field input { width: 100%; min-height: 54px; padding: .85rem 1rem; border: 1px solid #cbd6e8; border-radius: 12px; color: var(--ink); background: #fbfcff; font: inherit; font-size: 1rem; }
.form-field input::placeholder { color: #74829a; opacity: 1; }
.form-field input:focus { outline: 2px solid var(--blue); outline-offset: 2px; border-color: var(--blue); background: #fff; }
.password-field { position: relative; }
.password-field:has(.password-toggle:not([hidden])) input { padding-right: 4.3rem; }
.password-toggle { position: absolute; right: .45rem; top: 50%; transform: translateY(-50%); min-width: 48px; min-height: 44px; padding: .4rem; border: 0; background: transparent; color: var(--muted) !important; font-size: .82rem !important; font-weight: 600 !important; }
.password-toggle[hidden] { display: none; }
.auth-submit { width: 100%; min-height: 56px; padding: .8rem; border: 0; border-radius: 99px; background: #f25c00; color: #fff !important; font-size: 1.05rem !important; font-weight: 700 !important; margin-top: .2rem; }
.auth-submit:hover { background: #dc5000; }
.login-divider { display: flex; gap: 1rem; align-items: center; margin: 1.3rem 0; font-size: .85rem; color: var(--muted); }
.login-divider::before, .login-divider::after { content: ''; height: 1px; flex: 1; background: var(--line); }
.btn-google { display: flex; align-items: center; justify-content: center; gap: .75rem; min-height: 54px; border: 1px solid #cbd6e8; border-radius: 99px; font-size: .95rem; font-weight: 600; }
.btn-google svg { flex: none; }
.btn-google:hover { background: #f1f6fc; border-color: #8599bf; }
.login-hint { margin-top: 1.3rem !important; text-align: center; font-size: .94rem; color: var(--muted); }
.login-hint a { color: var(--blue); font-weight: 600; display: inline-block; padding-block: .4rem; }
.login-terms { margin-top: .85rem; font-size: .8rem; line-height: 1.9; text-align: center; color: var(--muted); }
.login-terms a { text-decoration: underline; text-underline-offset: 3px; }
.alert-error { border: 1px solid #f1b4b4; border-radius: 12px; padding: .8rem 1rem; margin-bottom: 1.2rem; background: #fff3f3; color: #a52828; font-size: .95rem; overflow-wrap: anywhere; }
.lyrica-login-page .home-footer { background: #f7f9fd; }
.no-js .home-menu-toggle { display: none; }
@media (max-width: 1100px) {
  .auth-grid { gap: 2.5rem; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); }
  .auth-intro .home-title { font-size: 3.2rem; }
  .auth-card { padding: 2rem; }
  .auth-desktop-break { display: none; }
  .no-js .home-header-inner { height: auto; flex-wrap: wrap; padding-block: 1.2rem; }
  .no-js .home-nav { display: flex; position: static; flex-direction: row; flex-wrap: wrap; width: 100%; padding: .8rem 0 0; border: 0; box-shadow: none; gap: .2rem .6rem; background: transparent; }
  .no-js .home-nav > a { font-size: .9rem; }
}
@media (max-width: 900px) {
  .auth-grid { grid-template-columns: 1fr; max-width: 640px; gap: 2rem; }
  .auth-hero { padding: 1.4rem 0 4rem; }
  .auth-intro { padding: 0; }
  .auth-intro .home-title { font-size: 2.65rem; }
  .auth-intro .home-title br:nth-of-type(2) { display: none; }
  .auth-eyebrow { margin-bottom: 1rem !important; }
  .auth-lead { font-size: 1rem; margin-top: 1rem !important; }
  .auth-tags { margin: 1.25rem 0 0; }
  .auth-back { margin-top: .9rem; }
}
@media (max-width: 480px) {
  .auth-grid { width: calc(100% - 2.5rem); }
  .auth-intro .home-title { font-size: 2.25rem; }
  .auth-eyebrow { font-size: .8rem; }
  .auth-card { padding: 1.65rem 1.35rem; border-radius: 1.5rem; }
  .auth-card h2 { font-size: 1.6rem; }
  .auth-tags li { font-size: .8rem; padding: .4rem .65rem; }
}
