/* ============================================================
   /* Login Page Only — Start */
   360Score.me — login.css
   Hybrid centered-card auth shell, Sunrise theme.
   ============================================================ */

.ts-login-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 40px 20px;
  background: linear-gradient(180deg, #8a8ad0 0%, #5C7DE8 28%, #E89A3C 68%, #FF6B1A 100%);
  position: relative;
  overflow: hidden;
}

/* Two-column shell */
.ts-login-shell {
  position: relative; z-index: 2;
  width: 100%; max-width: 1200px;
  min-height: calc(100vh - 80px);
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 32px;
  align-items: center;
}

/* Brand backdrop (left column) */
.ts-login-backdrop {
  display: flex; flex-direction: column; justify-content: center;
  justify-self: end;
  max-width: 560px;
  padding: 48px 40px;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  color: #0B1E45;
}
.ts-login-backdrop h1 {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800; color: #0B1E45;
  margin: 18px 0 12px; line-height: 1.15;
  -webkit-text-fill-color: #0B1E45;
  text-shadow: 0 1px 2px rgba(255,255,255,.4);
}
.ts-login-backdrop p { color: rgba(11,30,69,.78); font-size: 15px; line-height: 1.6; max-width: 460px; }
.ts-login-backdrop .ts-checks { margin-top: 22px; display: grid; gap: 10px; max-width: 460px; }
.ts-login-backdrop .ts-checks > div { color: rgba(11,30,69,.92); font-size: 14px; display: flex; align-items: center; gap: 10px; }
.ts-login-backdrop .ts-checks i { color: #5BC729; font-size: 16px; }
.ts-login-backdrop .ts-trust {
  margin-top: 28px; font-size: 12px; font-weight: 600; letter-spacing: .04em;
  color: rgba(11,30,69,.65); text-transform: uppercase;
  padding-top: 16px;
  border-top: 1px solid rgba(11,30,69,.12);
}
.ts-login-backdrop .ts-pill {
  align-self: flex-start;
  background: linear-gradient(90deg, #8FEBD5 0%, #3772FF 100%);
  color: #fff;
  border: 1px solid rgba(255,255,255,.35);
  box-shadow: 0 6px 16px -6px rgba(55,114,255,.45);
}
.ts-login-backdrop .ts-pill i { color: #fff; }

.ts-login-backdrop .ts-grad-mint {
  background: linear-gradient(90deg, #8FEBD5 0%, #3772FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: none;
}

/* Decorative gradient blobs (full-bleed) */
.ts-login-page::before, .ts-login-page::after {
  content: ''; position: absolute; border-radius: 50%; filter: blur(80px); opacity: .75; z-index: 0;
}
.ts-login-page::before { width: 480px; height: 480px; top: -140px; left: -140px; background: radial-gradient(circle, #FDCA40, transparent 70%); }
.ts-login-page::after  { width: 600px; height: 600px; bottom: -220px; right: -200px; background: radial-gradient(circle, #FF4300, transparent 70%); }

/* Floating sign-in card (right column) */
.ts-login-card {
  position: relative; z-index: 2;
  width: 100%; max-width: 460px;
  justify-self: end;
  align-self: center;
  background: linear-gradient(180deg, #1a3070 0%, #3a5aa8 100%);
  border-radius: 18px;
  box-shadow: 0 30px 60px -20px rgba(1,27,56,.45), 0 12px 24px -10px rgba(1,27,56,.3);
  border: 1px solid rgba(255,255,255,.18);
  padding: 28px 32px 26px;
}
.ts-login-card-close {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; margin-bottom: 14px;
}
.ts-login-card-back { color: rgba(255,255,255,.85); text-decoration: none; font-weight: 600; }
.ts-login-card-back:hover { color: #fff; }
.ts-login-card-back:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 6px; }
.ts-login-card-x {
  display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center;
  border-radius: 8px; color: rgba(255,255,255,.85); text-decoration: none;
}
.ts-login-card-x:hover { background: rgba(255,255,255,.2); color: #fff; }
.ts-login-card-x:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Brand → title → subtitle → form rhythm (20 / 6 / 18) */
.ts-login-card-brand { text-align: center; margin: 4px 0 20px; }
.ts-login-card-brand a {
  display: inline-block;
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}
.ts-login-card-brand img { height: 40px; width: auto; display: block; }

.ts-panel-title { font-size: 22px; font-weight: 700; color: #fff; margin: 0 0 4px; text-align: center; text-shadow: 0 1px 2px rgba(1,27,56,.2); }
.ts-panel-subtitle { font-size: 13px; color: rgba(255,255,255,.95); letter-spacing: .005em; margin: 0 0 18px; text-align: center; }
.ts-panel-subtitle a { color: #fff; font-weight: 700; text-decoration: underline; }
.ts-panel-subtitle a:hover { text-decoration: underline; }

.ts-login-state[hidden] { display: none !important; }
.ts-login-state { transition: opacity .18s ease; }
.ts-login-state.is-entering { opacity: 0; }

/* Inner surface around the form region (opaque — blur removed for perf) */
#login-form-region {
  background: rgba(255,255,255,.97);
  border-radius: 14px;
  padding: 22px 22px 20px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.5);
}

/* Form */
.ts-login-card .form-group { margin-bottom: 16px; }
.ts-login-card label { font-size: 13px; font-weight: 600; color: var(--ts-navy); margin-bottom: 6px; display: block; }
.ts-login-card .help-block.small { font-size: 11.5px; color: var(--ts-muted); margin-top: 6px; }
.ts-login-card .help-block.small code { background: rgba(55,114,255,.12); color: #1d4ed8; padding: 1px 5px; border-radius: 4px; font-size: 11px; }

.ts-input-password { position: relative; }
.ts-eye-btn {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; padding: 6px 8px; color: var(--ts-muted); cursor: pointer;
  border-radius: 6px;
}
.ts-eye-btn:hover { color: var(--ts-navy); background: var(--ts-bg-soft); }
.ts-eye-btn:focus-visible { outline: 2px solid var(--ts-blue); outline-offset: 2px; }

/* Microsoft SSO button (CSS-only 4-tile logo) */
.ts-sso-btn {
  width: 100%;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 16px;
  background: #fff; color: var(--ts-navy);
  border: 1px solid #cbd5e1; border-radius: 10px;
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, transform .12s ease;
}
.ts-sso-btn:hover { border-color: var(--ts-blue); box-shadow: 0 4px 12px -6px rgba(55,114,255,.35); transform: translateY(-1px); }
.ts-sso-btn:focus-visible { outline: 2px solid var(--ts-blue); outline-offset: 2px; border-color: var(--ts-blue); }

.ts-sso-ms-logo { display: inline-grid; grid-template-columns: 1fr 1fr; grid-gap: 2px; width: 16px; height: 16px; }
.ts-sso-ms-logo > span { display: block; }
.ts-sso-ms-logo > span:nth-child(1) { background: #F25022; }
.ts-sso-ms-logo > span:nth-child(2) { background: #7FBA00; }
.ts-sso-ms-logo > span:nth-child(3) { background: #00A4EF; }
.ts-sso-ms-logo > span:nth-child(4) { background: #FFB900; }

/* Divider */
.ts-login-divider {
  display: flex; align-items: center; gap: 10px;
  margin: 16px 0; color: var(--ts-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em;
}
.ts-login-divider::before, .ts-login-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--ts-border);
}

/* Resolving spinner */
.ts-login-resolving {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 22px 0; color: var(--ts-navy); font-weight: 500;
}
.ts-login-spin {
  display: inline-block; width: 20px; height: 20px;
  border: 2px solid rgba(55,114,255,.25); border-top-color: var(--ts-blue);
  border-radius: 50%; animation: tsLoginSpin .8s linear infinite;
}
@keyframes tsLoginSpin { to { transform: rotate(360deg); } }

/* SSO match card */
.ts-login-sso-card {
  background: linear-gradient(135deg, #FFF8E7, #FFE9D6);
  border: 1px solid rgba(255,138,61,.35);
  border-radius: 12px; padding: 16px;
}
.ts-login-sso-org {
  display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ts-navy);
}
.ts-login-sso-sub { font-size: 12.5px; color: #334155; margin: 8px 0 14px; }
.ts-login-reset-link {
  display: block; width: 100%; margin-top: 10px;
  background: none; border: 0; color: var(--ts-blue); font-size: 13px; font-weight: 600; cursor: pointer; padding: 8px;
}
.ts-login-reset-link:hover { text-decoration: underline; }
.ts-login-reset-link:focus-visible { outline: 2px solid var(--ts-blue); outline-offset: 2px; border-radius: 6px; }

/* Unknown / error nudges */
.ts-login-unknown-nudge, .ts-login-lookup-error {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 10px 12px; border-radius: 10px; font-size: 12.5px;
  margin-bottom: 14px;
}
.ts-login-unknown-nudge { background: rgba(55,114,255,.08); color: #1e3a8a; border: 1px solid rgba(55,114,255,.25); }
.ts-login-unknown-nudge a { color: var(--ts-blue); font-weight: 600; }
.ts-login-lookup-error { background: rgba(223,41,53,.08); color: #7f1d1d; border: 1px solid rgba(223,41,53,.25); }

/* Toast / error */
.ts-login-toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--ts-navy); color: #fff; padding: 12px 18px; border-radius: 10px;
  display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 500;
  box-shadow: 0 12px 30px -12px rgba(0,0,0,.4); z-index: 1000;
}
.ts-login-error {
  display: flex; align-items: center; gap: 8px;
  background: rgba(223,41,53,.08); color: #7f1d1d; border: 1px solid rgba(223,41,53,.25);
  padding: 10px 12px; border-radius: 10px; font-size: 13px; margin-bottom: 12px;
}

/* Secondary actions row */
.ts-login-secondary { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.3); }
.ts-login-secondary-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 8px;
  font-size: 12px; color: rgba(255,255,255,.92);
}
.ts-login-secondary-row > span { color: rgba(255,255,255,.35); }
.ts-login-secondary-row a { color: #fff; text-decoration: none; font-weight: 600; }
.ts-login-secondary-row a:hover { color: #fff; text-decoration: underline; }
.ts-login-sso-hint { margin-top: 10px; font-size: 12px; color: rgba(255,255,255,.92); text-align: center; font-style: italic; }
.ts-login-footer-links { margin-top: 14px; text-align: center; font-size: 11.5px; color: rgba(255,255,255,.92); display: flex; gap: 8px; justify-content: center; }
.ts-login-footer-links span { color: rgba(255,255,255,.4); }
.ts-login-footer-links a { color: rgba(255,255,255,.95); text-decoration: none; }
.ts-login-footer-links a:hover { color: #fff; text-decoration: underline; }

.checkbox label { font-size: 13px; color: #334155; }

/* Anonymous survey note (legible on navy card at every breakpoint) */
.ts-login-anon-note {
  margin-top: 10px;
  font-size: 12px;
  text-align: center;
  color: rgba(255,255,255,0.92);
}
.ts-login-anon-note .ts-anon-link {
  color: #fff;
  text-decoration: underline;
  font-weight: 600;
}
.ts-login-anon-note .ts-anon-link:hover { color: #fff; opacity: 0.9; }

/* ---------- Forward-arrow nudge on primary CTAs ---------- */
.btn.btn-ts-primary .bi-arrow-right { transition: transform .15s ease; }
.btn.btn-ts-primary:hover .bi-arrow-right { transform: translateX(2px); }

/* ---------- Email focus-pulse (triggered by "Use SSO instead" when empty) ---------- */
@keyframes tsInputPulse {
  0%   { box-shadow: 0 0 0 0 rgba(55,114,255,.45); }
  60%  { box-shadow: 0 0 0 10px rgba(55,114,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(55,114,255,0); }
}
.ts-input-pulse { animation: tsInputPulse 1.2s ease-out 1; border-color: var(--ts-blue) !important; }

/* ---------- DEMO-ONLY affordances (prototype hardening) ----------
   Strip target: every block fenced by <!-- DEMO-ONLY START / END --> in
   the HTML carries data-demo="prototype-only" and the .ts-demo-only class.
   Remove the fenced HTML + this rule before production cutover. */
.ts-demo-only {
  border-left: 2px dashed rgba(55,114,255,.45);
  padding-left: 8px !important;
}
.ts-demo-pill {
  display: inline-block; margin-right: 6px;
  font-size: 9.5px; font-weight: 800; letter-spacing: .08em;
  color: #1d4ed8; background: rgba(55,114,255,.12);
  border: 1px solid rgba(55,114,255,.3);
  padding: 1px 6px; border-radius: 4px; vertical-align: 1px;
}

/* Hide backdrop on tablet/mobile */
@media (max-width: 1099px) {
  .ts-login-shell { grid-template-columns: 1fr; gap: 0; max-width: 480px; }
  .ts-login-backdrop { display: none !important; }
  .ts-login-card { margin: 0 auto; justify-self: center; }
}

/* ---------- Mobile (≤600px) ---------- */
@media (max-width: 600px) {
  .ts-login-page { padding: 36px 12px 24px; align-items: flex-start; }
  .ts-login-page::before { width: 280px; height: 280px; opacity: .45; top: -100px; left: -100px; }
  .ts-login-page::after  { width: 320px; height: 320px; opacity: .45; bottom: -140px; right: -120px; }
  .ts-login-shell { min-height: 0; }
  .ts-login-card { padding: 20px 18px 18px; border-radius: 16px; }
  #login-form-region { padding: 16px 14px; border-radius: 12px; }
  .ts-panel-title { font-size: 18px; }
  .ts-panel-subtitle { font-size: 12.5px; margin-bottom: 16px; }

  /* iOS zoom-on-focus prevention: 16px input font + 44px height */
  .ts-login-card .form-control,
  .ts-input-lg { font-size: 16px !important; height: 44px; }
  .ts-sso-btn { min-height: 46px; font-size: 14px; }
  .btn.btn-ts-primary.btn-lg { min-height: 46px; font-size: 14.5px; }

  .ts-login-card .help-block.small { font-size: 11px; word-break: break-word; }
  .ts-login-card .help-block.small code { display: inline-block; max-width: 100%; word-break: break-all; }

  .ts-login-secondary { margin-top: 14px; padding-top: 12px; }
  .ts-login-secondary-row { gap: 8px 14px; font-size: 12.5px; }
  .ts-login-secondary-row > span { display: none; } /* hide · separators on mobile */

  .ts-login-anon-note {
    display: block;
    text-align: center;
    line-height: 1.5;
  }
  .ts-login-anon-note .ts-anon-link {
    display: inline-block;
    margin: 4px 0 0;
    padding: 6px 0;
    color: #fff !important;
    text-decoration: underline;
  }
  .ts-login-footer-links { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .ts-login-card { padding: 18px 14px 16px; border-radius: 14px; }
  .ts-panel-title { font-size: 17px; }
  .ts-login-card-brand img { height: 34px; }
  .ts-login-card-back { font-size: 12.5px; }
}

@media (max-width: 380px) {
  .ts-login-card-back { font-size: 11.5px; }
  .ts-login-card { padding: 16px 12px 14px; }
  #login-form-region { padding: 14px 12px; }
}

/* /* Login Page Only — End */ */