/* Shared GIT design tokens. Used by React and MVC. */
:root {
  --git-primary: #2563eb;
  --git-primary-dark: #1d4ed8;
  --git-navy: #111c31;
  --git-page: #f5f7fa;
  --git-card: #fff;
  --git-text: #17243b;
  --git-muted: #65748b;
  --git-border: #e4e9f0;
  --git-success: #16804a;
  --git-warning: #a16207;
  --git-danger: #b42318;
  --git-radius: 12px;
  --git-shadow: 0 2px 6px rgb(17 28 49 / 3%);
  --git-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { min-height: 100%; font-size: 14px; }
body { margin: 0; color: var(--git-text); background: var(--git-page); font-family: var(--git-font); line-height: 1.5; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
a { color: var(--git-primary); }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .6; }
svg { flex-shrink: 0; vertical-align: middle; }
:focus-visible { outline: 3px solid #93b5ff; outline-offset: 3px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 28px; line-height: 1.25; letter-spacing: -.035em; font-weight: 650; }
h2 { font-size: 19px; line-height: 1.4; letter-spacing: -.02em; font-weight: 650; }
h3 { font-size: 16px; font-weight: 600; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 3000; padding: 12px; border-radius: 8px; color: #fff; background: var(--git-primary); }
.skip-link:focus { top: 16px; }
.eyebrow, .admin-eyebrow { display: block; margin-bottom: 8px; color: var(--git-muted); font-size: 11px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
.primary-button, .admin-button, .admin-primary-action, .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; border: 1px solid transparent; border-radius: 8px; padding: 9px 16px; font-size: 13px; line-height: 1.5; font-weight: 600; text-decoration: none; transition: background .15s, border-color .15s; }
.primary-button, .admin-primary-action, .admin-button-blue, .admin-button-green, .btn-primary { color: #fff; background: var(--git-primary); border-color: var(--git-primary); }
.primary-button:hover, .admin-primary-action:hover, .admin-button-blue:hover, .admin-button-green:hover, .btn-primary:hover { color: #fff; background: var(--git-primary-dark); border-color: var(--git-primary-dark); }
.admin-button-light, .admin-button-orange, .btn-outline-secondary { color: #42516a; background: #fff; border-color: #d8e0ea; }
.admin-button-light:hover, .admin-button-orange:hover, .btn-outline-secondary:hover { color: var(--git-text); background: #f3f6fa; border-color: #bdc9da; }
.icon-button { display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid var(--git-border); border-radius: 8px; background: #fff; color: var(--git-muted); }
.form-field, .admin-form-field { display: grid; gap: 7px; min-width: 0; margin-bottom: 18px; }
.form-field > label, .form-field > span:first-child, .admin-form-field > label { color: #34445d; font-size: 13px; font-weight: 550; }
.form-field > label span, .admin-form-field > label span { color: var(--git-danger); }
input:not([type=checkbox]):not([type=radio]), select, textarea { width: 100%; min-width: 0; max-width: 100%; min-height: 42px; border: 1px solid #d9e1ec; border-radius: 8px; padding: 10px 12px; color: var(--git-text); background: #fff; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: #8692a5; }
input:focus, select:focus, textarea:focus { border-color: #739bf0; outline: 3px solid rgb(37 99 235 / 10%); outline-offset: 0; }
input:disabled, select:disabled, textarea:disabled { opacity: 1; color: #475569; -webkit-text-fill-color: #475569; background: #f8fafc; cursor: default; }
textarea { min-height: 108px; resize: vertical; }
input[type=checkbox], input[type=radio] { width: 16px; height: 16px; accent-color: var(--git-primary); }
.account-form-fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.password-field { position: relative; display: block; min-width: 0; }
.password-field > input { padding-right: 70px !important; }
.password-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); min-height: 30px; border: 0; border-radius: 5px; padding: 4px 8px; color: var(--git-primary); background: transparent; font-size: 12px; font-weight: 600; }
.password-toggle:hover { background: #edf3ff; }
.remember-me { display: flex; align-items: center; gap: 8px; color: var(--git-muted); font-size: 13px; }
.validation-summary, .reference-validation, .portal-alert { margin-bottom: 18px; border: 1px solid #f4c7c3; border-radius: 8px; padding: 12px 14px; color: #8b231c; background: #fff4f2; font-size: 13px; }
.field-validation { color: var(--git-danger); font-size: 12px; }
.login-page, .auth-page { min-height: 100dvh; background: var(--git-page); }
.reference-login-shell { display: grid; place-items: center; min-height: 100dvh; padding: 40px 20px; }
.reference-login { display: grid; gap: 28px; width: min(100%, 424px); }
.git-brand { display: flex; justify-content: center; align-items: center; gap: 12px; color: var(--git-text); }
.git-crest { display: grid; place-items: center; width: 48px; height: 48px; flex-shrink: 0; border: 1px solid #d5deeb; border-radius: 10px; background: #fff; color: #173b6d; font-size: 16px; font-weight: 750; }
.git-brand-text { display: grid; gap: 2px; }
.git-brand-text strong { font-size: 19px; letter-spacing: .01em; line-height: 1; }
.git-brand-text span { font-size: 10px; font-weight: 650; letter-spacing: .07em; }
.git-brand-text small { margin-top: 3px; color: var(--git-muted); font-size: 9px; }
.reference-login-card, .auth-card { width: 100%; padding: 32px; border: 1px solid var(--git-border); border-radius: var(--git-radius); background: #fff; box-shadow: var(--git-shadow); }
.reference-login-card h1 { margin: 6px 0 10px; font-size: 26px; }
.login-description, .auth-description { margin: 0 0 26px; color: var(--git-muted); font-size: 13px; }
.reference-input-group { display: flex; width: 100%; min-height: 44px; border: 1px solid #d9e1ec; border-radius: 8px; overflow: hidden; }
.reference-input-group > span { display: grid; place-items: center; padding: 0 12px; border-right: 1px solid var(--git-border); color: var(--git-muted); background: #f8fafc; font-size: 12px; }
.reference-input-group input { min-height: 44px; border: 0 !important; border-radius: 0 !important; }
.reference-input-group:focus-within { outline: 3px solid rgb(37 99 235 / 10%); border-color: #739bf0; }
.reference-input-group input:focus { outline: 0; }
.login-field { display: grid; gap: 7px; margin-bottom: 18px; }
.login-field > label { font-size: 13px; font-weight: 550; }
.reference-actions { display: grid; gap: 22px; margin-top: 20px; }
.reference-actions > button { width: 100%; }
.forgot-password { display: block; margin-top: 22px; color: var(--git-primary); font-size: 13px; font-weight: 550; text-align: center; text-decoration: none; }
.login-footer { margin: 0; color: var(--git-muted); text-align: center; font-size: 12px; }
.login-footer a { color: inherit; }
.auth-page { display: grid; place-items: center; padding: 40px 20px; }
.auth-card { max-width: 480px; }
.auth-card h1 { margin-bottom: 24px; font-size: 26px; }
.auth-card .primary-button { width: 100%; margin-top: 18px; }
.auth-modal { background: rgb(15 23 42 / 50%); }
.auth-modal-card { position: relative; width: min(560px, 100%); max-height: calc(100dvh - 40px); overflow-y: auto; padding: 32px; }
.auth-modal-close { position: absolute; right: 16px; top: 16px; }
.auth-modal-card h1 { margin-right: 24px; }
.btn-close { width: 32px; height: 32px; flex-shrink: 0; border: 0; border-radius: 7px; background: #f0f3f8; color: #53627a; position: relative; cursor: pointer; opacity: 1; padding: 0; }
.btn-close::before, .btn-close::after { content: ''; position: absolute; left: 9px; top: 15px; width: 14px; height: 1.5px; background: currentColor; transform: rotate(45deg); }
.btn-close::after { transform: rotate(-45deg); }
.btn-close:hover { background: #e2e9f2; }
.table-responsive { width: 100%; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; margin: 0; }
.table th { text-align: left; }
.table td, .table th { vertical-align: middle; }
.portal-access-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 28px; }
.portal-access-card { display: flex; flex-direction: column; gap: 16px; padding: 28px; background: #fff; border: 1px solid var(--git-border); border-radius: var(--git-radius); }
.portal-access-card .access-number { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 1px solid #dce7fa; border-radius: 10px; background: #f0f5ff; color: var(--git-primary); font-size: 12px; font-weight: 600; }
.portal-access-card h2 { margin-bottom: 0; }
.portal-access-card p { flex: 1; color: var(--git-muted); margin-bottom: 0; }
.portal-access-card .admin-button { align-self: flex-start; }
.portal-access-card > a:last-child { font-size: 12px; }
@media (max-width: 760px) { .portal-access-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .reference-login-shell { padding: 28px 16px; } .reference-login-card, .auth-card { padding: 24px; } .reference-login { gap: 24px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
