/*
 * GITC auth pages: sign-in, Google start, password reset, MFA challenge, sign-up.
 *
 * Ported from the approved v3 sign-in mockup (GITC/mockup/v3-login/login.css, the
 * .emp rules and the shared rules) and the v2 mockup's tokens, forms and notes.
 * Everything is scoped under .ga so nothing here can leak into the signed-in app.
 * Plain CSS on purpose: this app's Tailwind build does not pick up new utility
 * classes in development.
 *
 * Loaded only by the auth views, through shared/auth/_styles.html.erb (rendered
 * by shared/auth/_frame.html.erb).
 */

/* ============ tokens and base ============ */
.ga {
  --navy-950:#0A1630; --navy-900:#0E1C36; --navy-800:#14284B; --navy-700:#1D3B69; --navy-600:#295288; --navy-500:#3A68A3;
  --navy-200:#C9D7EA; --navy-100:#E2EAF5; --navy-50:#F1F5FB;
  --orange:#FF530D; --orange-600:#E44804; --orange-50:#FFF1EA;
  --cyan:#46A7C9; --cyan-ink:#1B7595; --cyan-50:#E8F5F9;
  --ink:#0F1B2E; --ink-2:#344256; --ink-3:#5E6C82; --ink-4:#97A2B4;
  --line:#E4E9F0; --line-2:#EEF1F6; --bg:#F5F7FA;
  --green:#12905A; --green-50:#E6F5EE; --red:#D63C3C; --red-50:#FDEDED;
  --sh-1:0 1px 2px rgba(15,27,46,.04),0 1px 3px rgba(15,27,46,.05);
  --sh-2:0 1px 2px rgba(15,27,46,.03),0 8px 20px -6px rgba(15,27,46,.08);

  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
  background: var(--navy-950);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.ga *, .ga *::before, .ga *::after { box-sizing: border-box; }
.ga h1, .ga h2, .ga h3 { color: var(--ink); margin: 0; letter-spacing: -.02em; }
.ga p { margin: 0; }
.ga a { color: inherit; text-decoration: none; }
.ga button { font: inherit; cursor: pointer; }
.ga form { margin: 0; }
.ga .hide { display: none !important; }
.ga .ic { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ga .ic.sm { width: 15px; height: 15px; }

/* ============ the banner: a replaceable asset with a navy-gradient fallback ============ */
.ga .hero {
  position: fixed; inset: 0; overflow: hidden;
  background:
    radial-gradient(680px 520px at 78% 30%, rgba(70, 167, 201, .30), transparent 62%),
    radial-gradient(520px 420px at 92% 88%, rgba(255, 83, 13, .14), transparent 60%),
    linear-gradient(135deg, var(--navy-700) 0%, var(--navy-900) 55%, var(--navy-950) 100%);
}
.ga .hero picture, .ga .hero img { position: absolute; inset: 0; width: 100%; height: 100%; }
/* the photo's "GITC" screen and the desk sit at its right edge, so keep that edge in view */
.ga .hero img { object-fit: cover; object-position: 100% 50%; display: block; }
/* a soft wash on the busy left foreground, so the panel's edge reads cleanly */
.ga .hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(10, 22, 48, .28) 0%, rgba(10, 22, 48, .10) 38%, transparent 60%);
}

.ga .si { position: relative; min-height: 100vh; display: flex; }

/* ============ the frosted panel: the page's content ============ */
.ga .panel {
  position: relative; z-index: 1; width: 560px; max-width: 100%; margin: 24px; padding: 36px 48px 28px;
  display: flex; flex-direction: column; border-radius: 28px;
  background: rgba(255, 255, 255, .90);
  -webkit-backdrop-filter: blur(22px) saturate(150%); backdrop-filter: blur(22px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: 0 2px 6px rgba(15, 27, 46, .06), 0 40px 80px -30px rgba(10, 22, 48, .55);
}
.ga .top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ga .logo { height: 34px; display: block; }
.ga .chip-int { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--navy-600); background: var(--navy-50); border-radius: 999px; padding: 5px 10px; white-space: nowrap; }
.ga .mid { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: 28px 0 20px; }
.ga .foot { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--ink-4); padding-top: 16px; border-top: 1px solid var(--line); }
.ga .foot a { color: var(--ink-3); font-weight: 600; }
.ga .foot a:hover { text-decoration: underline; }

/* on the photo: one quiet glass link, top right */
.ga .glass-link {
  position: absolute; top: 28px; right: 28px; z-index: 1;
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
  color: #fff; font-size: 13px; font-weight: 600;
  background: rgba(10, 22, 48, .42); border: 1px solid rgba(255, 255, 255, .28);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.ga .glass-link:hover { background: rgba(10, 22, 48, .56); }

/* ============ sign-in content, flat in the panel ============ */
.ga .eyebrow { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; letter-spacing: .01em; color: var(--navy-700); }
.ga .eyebrow .d { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(70, 167, 201, .18); }
.ga .display { font-size: 46px; line-height: 1.06; font-weight: 800; letter-spacing: -.035em; color: var(--ink); }
.ga .display .g { background: linear-gradient(90deg, var(--navy-600), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ga .lead { font-size: 15.5px; line-height: 1.6; color: var(--ink-3); max-width: 430px; }
.ga .signin { display: flex; flex-direction: column; gap: 14px; margin-top: 6px; }
.ga .signin h2 { font-size: 17px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.ga .signin .sub { font-size: 13.5px; color: var(--ink-3); margin-top: -8px; }
.ga .gbtn {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 54px;
  border: 1px solid #D9E1EC; border-radius: 14px; background: #fff; color: var(--ink);
  font: 600 15.5px/1 Inter, sans-serif; cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 27, 46, .05), 0 10px 26px -14px rgba(20, 40, 75, .35);
}
.ga .gbtn:hover { border-color: var(--navy-200); }
.ga .gbtn svg { width: 20px; height: 20px; }
.ga .domains { display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 12.5px; color: var(--ink-3); text-align: center; }
.ga .domains .ic { flex: none; }
.ga .domains b { color: var(--ink-2); font-weight: 600; }
.ga .or { display: flex; align-items: center; gap: 12px; color: var(--ink-4); font-size: 12px; margin-top: 2px; }
.ga .or::before, .ga .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* "Sign in with email instead": the existing email and password form, behind a disclosure */
.ga .alt > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--navy-600); border-radius: 8px; padding: 4px 0; }
.ga .alt > summary::-webkit-details-marker { display: none; }
.ga .alt > summary:hover { color: var(--navy-700); }
.ga .alt > summary:focus-visible { outline: 2px solid var(--navy-500); outline-offset: 2px; }
.ga .alt > summary .chev { transition: transform .15s; }
.ga .alt[open] > summary .chev { transform: rotate(180deg); }
.ga .alt-body { padding-top: 16px; }
.ga .rolesw { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; font-size: 12px; color: var(--ink-4); }
.ga .rolesw .seg { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-weight: 600; color: var(--ink-3); background: var(--line-2); }
.ga .rolesw .seg.on { background: var(--navy-50); color: var(--navy-600); }
.ga a.seg:hover { color: var(--navy-600); }

/* ============ notes / alerts (the mockup's .note.bad) ============ */
.ga .note { display: flex; gap: 10px; align-items: flex-start; padding: 13px 15px; border-radius: 14px; background: var(--navy-50); color: var(--navy-700); font-size: 13px; line-height: 1.5; }
.ga .note .ic { width: 17px; height: 17px; margin-top: 1px; flex: none; }
.ga .note.ok { background: var(--green-50); color: #0B6B42; }
.ga .note.bad { background: var(--red-50); color: #A42727; }
.ga .note b { font-weight: 700; }
.ga .note ul { margin: 6px 0 0; padding-left: 18px; }
.ga .note li + li { margin-top: 2px; }
.ga .note .note-act { display: block; margin-top: 8px; }
.ga .note .note-act button { background: none; border: 0; padding: 0; font-size: 13px; font-weight: 700; color: inherit; text-decoration: underline; }

/* ============ forms (the mockup's .field / .lb / .inp / .sel) ============ */
.ga .btn { display: flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 20px; border-radius: 14px; border: 1px solid transparent; font-weight: 600; font-size: 15px; white-space: nowrap; transition: .15s; }
.ga .btn.wide { width: 100%; }
.ga .btn-orange { background: var(--orange); color: #fff; box-shadow: 0 10px 24px -10px rgba(255, 83, 13, .7); }
.ga .btn-orange:hover { background: var(--orange-600); }
.ga .btn-navy { background: var(--navy-600); color: #fff; box-shadow: 0 1px 2px rgba(20,40,75,.2), 0 6px 14px -6px rgba(41,82,136,.5); }
.ga .btn-navy:hover { background: var(--navy-700); }
.ga .btn:disabled { opacity: .55; cursor: not-allowed; }
.ga .field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.ga .field:last-child { margin-bottom: 0; }
.ga .lb { font-size: 13px; font-weight: 600; color: var(--ink); }
.ga .hint2 { font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }
.ga .inp, .ga .sel { width: 100%; height: 48px; border-radius: 12px; border: 1px solid #D9E1EC; background: #fff; padding: 0 14px; font: 500 14.5px/1.4 Inter, system-ui, sans-serif; color: var(--ink); box-shadow: var(--sh-1); outline: none; transition: .15s; }
.ga .inp::placeholder { color: var(--ink-4); font-weight: 400; }
.ga .inp:focus, .ga .sel:focus { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(70, 167, 201, .22); }
.ga .inp.bad, .ga .sel.bad { border-color: var(--red); }
.ga .sel { appearance: none; -webkit-appearance: none; padding-right: 38px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235E6C82' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; }
.ga .inp-wrap { position: relative; }
.ga .inp-wrap .inp { padding-right: 46px; }
.ga .eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: 0; border-radius: 9px; background: none; color: var(--ink-4); display: grid; place-items: center; }
.ga .eye:hover { color: var(--ink-2); background: var(--line-2); }
.ga .fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.ga .fgrid .field { margin-bottom: 0; }
.ga .fgrid .full { grid-column: 1 / -1; }
.ga .row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -4px 0 16px; font-size: 13px; }
.ga .check { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); font-weight: 500; cursor: pointer; }
.ga .check input { width: 16px; height: 16px; accent-color: var(--navy-600); margin: 0; }
.ga .link { color: var(--navy-600); font-weight: 600; }
.ga .link:hover { text-decoration: underline; }
.ga .ts { display: flex; justify-content: center; margin: 4px 0 16px; }

/* ============ the other auth pages (password reset, MFA, Google start, sign-up) ============ */
/* Their content sits flat in the same panel, under .mid's vertical centring. */
.ga .ga-card { width: 100%; }
.ga .ga-card .tile { margin-bottom: 16px; width: 48px; height: 48px; border-radius: 14px; }
.ga .ga-card .tile .ic { width: 22px; height: 22px; }
.ga .tile { display: grid; place-items: center; flex: none; }
.ga .t-navy { background: var(--navy-50); color: var(--navy-600); }
.ga .ga-card h1 { font-size: 24px; font-weight: 800; letter-spacing: -.03em; }
.ga .ga-card .sub { font-size: 14px; color: var(--ink-3); margin: 6px 0 22px; line-height: 1.55; }
.ga .ga-card .note { margin-bottom: 18px; }
.ga .ga-card .btn.wide { margin-top: 6px; }
.ga .ga-code { text-align: center; letter-spacing: .4em; font-size: 24px; font-weight: 700; height: 56px; }
.ga .ga-code::placeholder { letter-spacing: normal; font-size: 15px; font-weight: 400; }
.ga .ga-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line-2); font-size: 12.5px; color: var(--ink-4); }
.ga .ga-meta .back { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--navy-600); }
.ga .ga-meta .back:hover { text-decoration: underline; }
.ga .ga-center { text-align: center; }
.ga .ga-center .tile { margin-left: auto; margin-right: auto; }
.ga .ga-center .ga-meta { justify-content: center; }
.ga .ga-sec { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line-2); }
.ga .ga-sec.first { margin-top: 0; padding-top: 0; border-top: 0; }
.ga .ga-sec h3 { font-size: 15px; font-weight: 700; }
.ga .ga-sec .hint2 { margin: 3px 0 14px; }
.ga .ga-sec .fgrid + .fgrid { margin-top: 16px; }
.ga .ga-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.ga .ga-head h1 { margin: 0; }
.ga .ga-head .alt-link { font-size: 13px; color: var(--ink-3); }
.ga .ga-head .alt-link a { color: var(--navy-600); font-weight: 600; margin-left: 6px; }
.ga .ga-resend { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-2); text-align: center; font-size: 13px; color: var(--ink-3); }
.ga .ga-resend button { background: none; border: 0; padding: 0; font-weight: 700; color: var(--navy-600); text-decoration: underline; margin-top: 6px; }

/* ============ phones: the banner becomes a band above the form ============ */
@media (max-width: 760px) {
  .ga { background: var(--bg); }
  .ga .hero { position: relative; height: 230px; inset: auto; }
  .ga .hero img { object-position: 70% 50%; }
  .ga .hero::after { background: linear-gradient(180deg, transparent 55%, rgba(10, 22, 48, .25)); }
  .ga .si { flex-direction: column; min-height: 100vh; }
  .ga .panel {
    width: auto; margin: -30px 0 0; padding: 26px 22px 22px; border-radius: 26px 26px 0 0; flex: 1;
    background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; border: 0; box-shadow: 0 -10px 30px -12px rgba(10, 22, 48, .35);
  }
  .ga .mid { gap: 18px; padding: 22px 0 18px; justify-content: flex-start; }
  .ga .display { font-size: 33px; }
  .ga .lead { font-size: 14.5px; }
  .ga .glass-link { top: 16px; right: 16px; padding: 8px 12px; font-size: 12px; }
  .ga .domains { font-size: 12px; }
  .ga .domains .ic { display: none; }
  .ga .fgrid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .ga * { transition: none !important; }
}

/* ============ employee record forms: sign-up and the Welcome step (v3 mockup, added 2026-10-19) ============ */
.ga .g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ga .form { display: flex; flex-direction: column; gap: 14px; }
.ga .form .field { margin-bottom: 0; }
.ga .form h2 { font-size: 22px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.ga .form .sub { font-size: 13.5px; color: var(--ink-3); margin-top: -8px; }
.ga .form .note { margin: 0; }
.ga .form .lb { color: var(--ink-2); }
.ga .lb .req { color: var(--orange); margin-left: 2px; }
.ga .inp[readonly] { background: var(--navy-50); color: var(--ink-2); border-color: var(--line); }
.ga .inp-wrap.ico > .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-4); pointer-events: none; }
.ga .inp-wrap.ico .inp { padding-left: 42px; }
.ga .sel-wrap { position: relative; }
.ga .sel-wrap > .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-4); pointer-events: none; }
.ga .sel-wrap::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--ink-4); border-bottom: 2px solid var(--ink-4); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.ga .sel-wrap select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-left: 42px; padding-right: 38px; }
.ga .sel-wrap select:invalid { color: var(--ink-4); font-weight: 400; }
.ga .constant { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; border-radius: 12px; background: var(--navy-50); border: 1px dashed var(--navy-200); color: var(--ink-2); font-weight: 600; font-size: 14px; }
.ga .constant .ic { color: var(--navy-500); }
.ga .constant small { margin-left: auto; font-weight: 500; color: var(--ink-4); font-size: 12px; }
.ga .who { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.ga .who .av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--navy-600), var(--cyan)); flex: none; }
.ga .who b { display: block; color: var(--ink); font-size: 14.5px; }
.ga .who span { font-size: 12.5px; color: var(--ink-3); }
.ga .who .g { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--green); }
.ga .backlink { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--navy-600); }
.ga .backlink:hover { text-decoration: underline; }
.ga .pwhint { font-size: 12px; color: var(--ink-4); margin-top: -6px; }
.ga .fine { display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 12.5px; color: var(--ink-3); text-align: center; }
.ga .fine .ic { flex: none; }
.ga .mid.tall { justify-content: flex-start; padding-top: 22px; }
.ga .linkbtn { background: none; border: 0; padding: 0; color: var(--ink-3); font: inherit; font-size: 12px; cursor: pointer; text-align: left; }
.ga .linkbtn:hover { text-decoration: underline; }
@media (max-width: 760px) {
  .ga .g2 { grid-template-columns: 1fr; }
  .ga .fine .ic { display: none; }
}
