/**
 * CE-FINAL33-LOGIN2 · the owner-approved sign-in surface, ported from the apex
 * host's approved design (`/workshop/apps/jessyj-jarvis-frontend/app/globals.css`).
 *
 * The chart-engine owns neither Tailwind nor the apex's global stylesheet stack,
 * so every rule the approved page needs is reproduced here. To keep this view-only
 * redesign collision-safe, EVERY rule is scoped under the `.mc-login` wrapper that
 * AuthGate renders: no selector can reach a component this lane does not own, and
 * none of the estate's generic `.notice` / `.muted` / `input` rules can leak in.
 *
 * The apex theme uses CSS custom properties (`--v3-fs-micro`, `--background`, …)
 * that this app does not define, so the approved design's own literal colours and
 * the 12px micro size are carried as literals — the wall renders the same approved
 * design on every host, not a re-invented palette.
 *
 * Responsive contract (from the approved design's own breakpoints):
 *   >=950px        two-column split (art 1.05fr | form 1fr)
 *   <=950px        two-column, tightened
 *   <=700px        single column: the art panel HIDES, the form takes full width
 *                  and is always reachable. The form never hides.
 */
.mc-login,
.mc-login *,
.mc-login *::before,
.mc-login *::after { box-sizing: border-box; }

.mc-login { min-height: 100vh; color: #e8edf5; font-size: 14px; line-height: 1.5; }
.mc-login h1, .mc-login h2, .mc-login h3, .mc-login h4, .mc-login p { margin: 0; }
.mc-login p { line-height: 1.65; }
.mc-login a { color: inherit; text-decoration: none; }
.mc-login svg { flex-shrink: 0; }
.mc-login input {
  font: inherit;
  width: 100%;
  min-width: 0;
  border: 1px solid #1e5b83;
  border-radius: 6px;
  padding: 12px 14px;
  background: #03101c;
  color: #e8edf5;
  outline-color: #2991ff;
}
.mc-login input::placeholder { color: #69869e; }
.mc-login input:focus-visible { outline: 2px solid #2991ff; outline-offset: 4px; }
.mc-login button { font: inherit; cursor: pointer; }
.mc-login button:disabled { cursor: not-allowed; opacity: .45; }

/* ---- two-column page ---- */
.mc-login .login-page {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 100vh;
  background: #04101b;
}

/* ---- left art panel ---- */
.mc-login .login-art { position: relative; overflow: hidden; min-height: 700px; }
.mc-login .login-art > img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; object-position: 54% center; }
.mc-login .login-art > div { position: absolute; inset: 0; background: linear-gradient(0deg, #03101bf5, transparent 60%), linear-gradient(90deg, #04101b33, #04101b33); }
.mc-login .login-art > .brand { position: relative; margin: 36px; }
.mc-login .login-art > section { position: absolute; bottom: 75px; left: 45px; right: 35px; }
.mc-login .login-art h1 { font-size: 44px; font-weight: 500; line-height: 1.15; letter-spacing: -1.5px; margin: 16px 0; }
.mc-login .login-art em { font-style: normal; color: #4aade7; }
.mc-login .login-art p { color: #93b5cc; font-size: 14px; }

/* ---- brand lockup (apex `.brand`) ---- */
.mc-login .brand { display: flex; align-items: center; gap: 17px; flex-shrink: 0; }
.mc-login .brand > span:last-child { font-size: 23px; font-weight: 500; letter-spacing: 5px; white-space: nowrap; }
.mc-login .brand small { display: block; font-size: 12px; letter-spacing: 2.1px; margin-top: 5px; color: #6ab5e4; }
.mc-login .brand-orbit {
  width: 45px; height: 45px; border: 1px solid #6bcaff; border-radius: 50%;
  box-shadow: 0 0 14px #168bdd33, inset 0 0 9px #2d99ce33; position: relative; display: block; flex-shrink: 0;
}
.mc-login .brand-orbit:before,
.mc-login .brand-orbit:after {
  content: ''; position: absolute; border-radius: 50%; inset: 3px;
  border: 2px solid transparent; border-top-color: #a3dcff; border-bottom-color: #17719e; transform: rotate(-30deg);
}
.mc-login .brand-orbit:after {
  inset: -4px; border-width: 1px; border-right-color: #2f91c5; border-top-color: transparent; border-bottom-color: transparent; transform: rotate(-20deg);
}

/* ---- right column & card ---- */
.mc-login .login-column {
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 65px 55px; position: relative; border-left: 1px solid #23466155;
}
.mc-login .back-link { position: absolute; top: 35px; left: 50px; display: flex; align-items: center; gap: 8px; font-size: 12px; color: #78a1bd; }
.mc-login .back-link:hover { color: #a9cde6; }
.mc-login .login-card { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 20px; }
.mc-login .login-icon {
  width: 51px; height: 51px; display: grid; place-items: center; background: #0c3046;
  border: 1px solid #245574; border-radius: 12px; color: #76c4ef; margin-bottom: 8px;
}
.mc-login .eyebrow { font-size: 12px; letter-spacing: 2.2px; color: #8fc7ec; display: block; font-weight: 500; }
.mc-login .login-card > .eyebrow { font-size: 12px; margin-bottom: -10px; }
.mc-login .login-card h2 { font-size: 32px; font-weight: 500; letter-spacing: -1px; }
.mc-login .login-card > p { font-size: 13px; color: #7e9eb5; margin-top: -12px; }
.mc-login .login-card label { font-size: 13px; color: #bfd5e4; display: flex; flex-direction: column; gap: 9px; }

.mc-login .primary-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 11px 20px; border: 1px solid #2991ff; border-radius: 5px; white-space: nowrap;
  font-size: 14px; font-weight: 550; background: linear-gradient(180deg, #168dff, #075bec);
  color: white; box-shadow: 0 4px 16px #0667ff22, inset 0 1px #74c2ff55; min-height: 43px;
}
.mc-login .primary-button:hover { background: linear-gradient(#31a0ff, #106afa); box-shadow: 0 5px 24px #0667ff44; }
.mc-login .text-button { display: inline-flex; gap: 8px; color: #2991ff; align-items: center; font-size: 13px; background: none; border: none; padding: 0; }

.mc-login .form-error { color: #ed94a7; font-size: 12px; margin: 0; }
.mc-login .notice {
  font-size: 12px; color: #a9a99f; border: 1px solid #bb9c4c44; background: #a68b3110;
  border-radius: 5px; padding: 14px 17px; margin: 0; line-height: 1.7;
}
.mc-login .muted { color: #7e9eb5; font-size: 12px; }

.mc-login .login-assurance { display: flex; gap: 10px; align-items: flex-start; color: #89abc2; font-size: 12px; line-height: 1.8; margin-top: 7px; }
.mc-login .login-assurance small { font-size: 12px; color: #527d9a; }
.mc-login .login-assurance svg { color: #5698bc; margin-top: 2px; }
.mc-login .login-foot { font-size: 12px; color: #4d728b; margin-top: 65px; }

/* ---- fail-closed "checking" / status line (approved frame, never a fake form) ---- */
.mc-login .login-status { display: flex; align-items: center; gap: 12px; color: #7e9eb5; font-size: 14px; }
.mc-login .login-status .login-spinner {
  width: 18px; height: 18px; border-radius: 50%; border: 2px solid #245574; border-top-color: #76c4ef;
  animation: mc-login-spin 0.9s linear infinite; flex-shrink: 0;
}
@keyframes mc-login-spin { to { transform: rotate(360deg); } }
.mc-login .login-detail { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; color: #6f8ba1; margin-top: -8px; }

/* ---- >=950px: tightened two-column ---- */
@media (max-width: 950px) {
  .mc-login .login-page { grid-template-columns: 1fr 1fr; }
  .mc-login .login-column { padding: 65px 30px; }
  .mc-login .login-art > section { left: 30px; }
  .mc-login .login-art h1 { font-size: 35px; }
  .mc-login .login-art > .brand { margin: 30px; }
  .mc-login .login-art .brand > span:last-child { font-size: 18px; }
  .mc-login .login-art .brand small { font-size: 12px; }
  .mc-login .back-link { left: 30px; }
  .mc-login .brand { gap: 11px; }
  .mc-login .brand-orbit { width: 32px; height: 32px; }
  .mc-login .brand > span:last-child { font-size: 17px; letter-spacing: 3px; }
  .mc-login .brand small { font-size: 12px; letter-spacing: 1px; }
}

/* ---- <=700px: single column; art may hide, the form may not ---- */
@media (max-width: 700px) {
  .mc-login .login-page { grid-template-columns: 1fr; }
  .mc-login .login-art { display: none; }
  .mc-login .login-column { padding: 110px 25px 45px; min-height: 100vh; border-left: none; }
  .mc-login .back-link { left: 25px; top: 30px; }
  .mc-login .login-card { max-width: 390px; }
  .mc-login .login-card h2 { font-size: 32px; }
  .mc-login .login-foot { margin-top: 40px; }
}
