:root {
  --app-primary: #2563eb;
  --app-primary-dark: #1d4ed8;
  --app-indigo: #4f46e5;
  --app-navy: #172554;
  --app-ink: #172033;
  --app-muted: #667085;
  --app-line: #e4e9f2;
  --app-surface: #fff;
  --app-bg: #f5f7fb;
  --app-radius: 16px;
  --app-shadow: 0 8px 30px rgba(23, 32, 51, .07);
}
* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  min-height: 100vh;
  background: radial-gradient(circle at 5% 0%, rgba(37, 99, 235, .06), transparent 28rem), var(--app-bg);
  color: var(--app-ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: .94rem;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--app-primary); text-underline-offset: 3px; }
a:hover { color: var(--app-primary-dark); }
.page-shell { max-width: 1480px; padding-left: clamp(1rem, 2.2vw, 2rem); padding-right: clamp(1rem, 2.2vw, 2rem); }
main.page-shell, main.container-fluid.page-shell { padding-top: 2rem !important; padding-bottom: 3rem !important; }

/* Navigation */
.app-navbar { min-height: 76px; background: rgba(255, 255, 255, .94); border-bottom: 1px solid rgba(226, 232, 240, .9); backdrop-filter: blur(18px); }
.app-brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--app-navy); margin-right: 2.25rem; padding: .35rem 0; }
.app-brand:hover { color: var(--app-navy); }
.app-brand .brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: #fff; font-size: 1.15rem; background: linear-gradient(145deg, var(--app-primary), var(--app-indigo)); box-shadow: 0 8px 20px rgba(37, 99, 235, .24); }
.app-brand strong { display: block; font-size: 1rem; line-height: 1.05; letter-spacing: -.025em; }
.app-brand small { display: block; color: #8992a5; font-size: .68rem; font-weight: 500; margin-top: .22rem; }
.app-nav-links { gap: .22rem; }
.app-nav-links .nav-link { display: flex; align-items: center; gap: .48rem; color: #596579; border-radius: 10px; padding: .62rem .75rem !important; font-weight: 600; font-size: .86rem; transition: color .18s ease, background .18s ease, transform .18s ease; }
.app-nav-links .nav-link i { color: #8791a4; font-size: .95rem; }
.app-nav-links .nav-link:hover, .app-nav-links .nav-link:focus { color: var(--app-primary); background: #eff6ff; transform: translateY(-1px); }
.app-nav-links .nav-link:hover i { color: var(--app-primary); }
.navbar-toggler { border: 0; color: var(--app-navy); font-size: 1.45rem; box-shadow: none !important; }
.user-menu { margin-left: .75rem; }
.user-chip { display: flex; align-items: center; gap: .65rem; border: 1px solid var(--app-line); border-radius: 12px; background: #fff; color: var(--app-ink); padding: .38rem calc(.62rem + 5px) .38rem .42rem; -webkit-appearance: none; appearance: none; font: inherit; }
.user-chip::after { flex: 0 0 auto; color: #98a2b3; margin-left: calc(.7rem + 5px); margin-right: .1rem; }
.user-avatar { display: grid; place-items: center; flex: 0 0 34px; height: 34px; border-radius: 10px; background: #eef2ff; color: var(--app-indigo); }
.user-identity { min-width: 0; text-align: left; line-height: 1.05; }
.user-identity small { display: block; color: #98a2b3; font-size: .63rem; margin-bottom: .22rem; }
.user-identity strong { display: block; white-space: nowrap; font-size: .76rem; font-weight: 650; }
.app-dropdown { border: 1px solid var(--app-line); border-radius: 13px; padding: .45rem; box-shadow: 0 18px 45px rgba(23, 32, 51, .14); }
.app-dropdown .dropdown-item { display: flex; align-items: center; gap: .65rem; border-radius: 8px; padding: .62rem .75rem; font-size: .86rem; font-weight: 550; }
.app-dropdown .dropdown-item i { color: #7c8799; width: 1rem; }

/* Typography and surfaces */
h1, h2, h3, h4, h5, h6 { color: var(--app-ink); letter-spacing: -.025em; }
h1.h3, .h3 { font-size: clamp(1.55rem, 2vw, 1.9rem); font-weight: 720; }
.text-secondary { color: var(--app-muted) !important; }
.card { border: 1px solid rgba(226, 232, 240, .95); border-radius: var(--app-radius); background: var(--app-surface); box-shadow: var(--app-shadow); overflow: hidden; }
.card-header, .card-footer { border-color: var(--app-line); padding: 1rem 1.2rem; }
.card-header.bg-white, .card-footer.bg-white { background: #fff !important; }
.card-header strong { font-size: .95rem; }
.card-body { padding: 1.25rem; }
.stat-card { position: relative; min-height: 142px; border: 1px solid #e5eaf3; box-shadow: 0 8px 24px rgba(23, 32, 51, .055); }
.stat-card::after { content: ""; position: absolute; inset: 0 0 auto auto; width: 92px; height: 92px; border-radius: 0 0 0 100%; background: linear-gradient(145deg, rgba(37, 99, 235, .10), rgba(79, 70, 229, .02)); pointer-events: none; }
.stat-card .display-6 { margin: .3rem 0 .2rem; font-size: 2.35rem; font-weight: 750; letter-spacing: -.06em; color: var(--app-navy); }
.dashboard-date { display: inline-grid; grid-template-columns: auto auto; align-items: center; align-self: flex-start; gap: .65rem; max-width: 100%; padding: .5rem .72rem; border: 1px solid #dfe6f1; border-radius: 13px; background: rgba(255, 255, 255, .82); box-shadow: 0 5px 18px rgba(23, 32, 51, .05); }
.dashboard-date-icon { display: inline-grid; place-items: center; aspect-ratio: 1; padding: .6rem; border-radius: 10px; color: var(--app-primary); background: #edf4ff; font-size: 1rem; line-height: 1; }
.dashboard-date small { display: block; color: #8a94a6; font-size: .62rem; font-weight: 700; letter-spacing: .06em; line-height: 1; text-transform: uppercase; }
.dashboard-date strong { display: block; max-width: 100%; margin-top: .22rem; color: #344054; font-size: .78rem; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.dashboard-coverage-card { position: relative; min-height: 142px; border-color: #dce5f6; background: linear-gradient(120deg, #f8faff 0%, #fff 58%, #f1f5ff 100%); overflow: hidden; }
.dashboard-coverage-card::before { content: ""; position: absolute; width: 260px; height: 260px; right: -92px; top: -120px; border: 1px solid rgba(37, 99, 235, .11); border-radius: 50%; box-shadow: 0 0 0 45px rgba(37, 99, 235, .025), 0 0 0 90px rgba(79, 70, 229, .02); }
.dashboard-coverage-copy { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; min-height: 140px; max-width: 58%; }
.dashboard-coverage-copy strong { color: var(--app-navy); font-size: 1.05rem; letter-spacing: -.025em; }
.dashboard-coverage-copy > span:last-child { margin-top: .28rem; color: #758095; font-size: .76rem; }
.dashboard-coverage-eyebrow { display: inline-flex; align-items: center; gap: .38rem; margin-bottom: .45rem; color: var(--app-primary); font-size: .66rem; font-weight: 750; letter-spacing: .065em; text-transform: uppercase; }
.dashboard-outline-grid { position: absolute; z-index: 1; top: 50%; right: clamp(1rem, 4vw, 3.5rem); display: grid; grid-template-columns: repeat(4, 34px); gap: 8px; transform: translateY(-50%) rotate(-4deg); }
.dashboard-outline-grid span { width: 34px; height: 34px; border: 1px solid rgba(37, 99, 235, .25); border-radius: 9px; background: rgba(255, 255, 255, .42); animation: dashboard-outline-pulse 3.2s ease-in-out infinite; animation-delay: var(--delay); }
.dashboard-outline-grid span:nth-child(2), .dashboard-outline-grid span:nth-child(7) { background: rgba(37, 99, 235, .08); }
.dashboard-outline-grid span:nth-child(4), .dashboard-outline-grid span:nth-child(5) { border-color: rgba(79, 70, 229, .34); }
.release-status { display: inline-flex; align-items: center; gap: .42rem; min-height: 30px; padding: .34rem .62rem; border: 1px solid; border-radius: 999px; font-size: .7rem; line-height: 1; }
.release-status i { font-size: .78rem; }
.release-status-ready { border-color: #b9e4d0; color: #117a4e; background: #f2fbf7; }
.release-status-ready > span { color: #598071; }
.release-status-ready strong { font-size: .72rem; }
.release-status-empty { border-color: #d6dce7; color: #6b7587; background: #f8f9fb; }
.dashboard-empty-state { display: flex; min-height: 230px; padding: 2rem 1.25rem; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.dashboard-empty-state strong { margin-top: .8rem; color: #3e495c; font-size: .9rem; }
.dashboard-empty-state p { max-width: 360px; margin: .3rem 0 0; color: #8b95a6; font-size: .76rem; line-height: 1.55; }
.dashboard-empty-visual { position: relative; display: grid; place-items: center; width: 68px; height: 68px; border: 1px dashed #cbd5e1; border-radius: 22px; background: linear-gradient(145deg, #fff, #f4f7fb); color: #667085; font-size: 1.55rem; }
.dashboard-empty-visual::before, .dashboard-empty-visual::after { content: ""; position: absolute; width: 14px; height: 14px; border: 1px solid currentColor; border-radius: 4px; opacity: .22; }
.dashboard-empty-visual::before { top: -7px; right: -7px; }
.dashboard-empty-visual::after { bottom: -6px; left: -6px; }
.dashboard-empty-visual-ok { border-color: #b8dfcd; color: #16825d; background: linear-gradient(145deg, #fff, #eefaf5); }
.dashboard-empty-visual-release { border-color: #c7d7f5; color: #2563eb; background: linear-gradient(145deg, #fff, #eff5ff); }
@keyframes dashboard-outline-pulse {
  0%, 100% { transform: translateY(0); border-color: rgba(37, 99, 235, .22); box-shadow: 0 0 0 rgba(37, 99, 235, 0); }
  50% { transform: translateY(-5px); border-color: rgba(37, 99, 235, .62); box-shadow: 0 7px 18px rgba(37, 99, 235, .1); }
}
.list-group-item { border-color: var(--app-line); padding: .95rem 1.2rem; }
.list-group-item-action:hover { background: #f8faff; }

/* Forms */
.form-label { color: #344054; font-weight: 650; font-size: .84rem; margin-bottom: .48rem; }
.required::after { content: " *"; color: #e11d48; }
.form-control, .form-select { min-height: 44px; border-color: #d7dde7; border-radius: 10px; color: var(--app-ink); background-color: #fff; padding: .62rem .8rem; font-size: .9rem; box-shadow: 0 1px 2px rgba(16, 24, 40, .02); transition: border-color .18s ease, box-shadow .18s ease; }
.form-control::placeholder { color: #a4acba; }
.form-control:focus, .form-select:focus { border-color: #84adff; box-shadow: 0 0 0 4px rgba(37, 99, 235, .11); }
textarea.form-control { min-height: auto; }
.input-group .form-control { border-radius: 10px 0 0 10px; }
.input-group-text { border-color: #d7dde7; border-radius: 0 10px 10px 0; background: #f4f7fb; color: #475467; font-weight: 650; font-size: .88rem; }
.form-check-input { width: 1.08rem; height: 1.08rem; border-color: #c8d0dc; }
.form-check-input:checked { background-color: var(--app-primary); border-color: var(--app-primary); }
.form-text { color: #7c8799; font-size: .77rem; }
.form-info { display: inline-grid; place-items: center; margin-left: .2rem; padding: 0; border: 0; background: transparent; color: #8490a3; font: inherit; font-size: .78rem; line-height: 1; vertical-align: -.05em; }
.form-info:hover, .form-info:focus-visible { color: var(--app-primary); outline: none; }

/* Buttons */
.btn { border-radius: 10px; padding: .58rem .9rem; font-weight: 650; font-size: .86rem; }
.btn-sm { border-radius: 8px; padding: .36rem .65rem; font-size: .78rem; }
.btn-primary { border-color: var(--app-primary); background: linear-gradient(135deg, var(--app-primary), #3158d9); box-shadow: 0 5px 14px rgba(37, 99, 235, .18); }
.btn-primary:hover, .btn-primary:focus { border-color: var(--app-primary-dark); background: linear-gradient(135deg, var(--app-primary-dark), #2949bf); transform: translateY(-1px); }
.btn-outline-primary { color: var(--app-primary); border-color: #b8cdfa; }
.btn-outline-primary:hover { background: #eff6ff; color: var(--app-primary-dark); border-color: #8fb1f5; }

/* Data tables and pagination */
.table { --bs-table-bg: transparent; --bs-table-hover-bg: #f8faff; }
.table > :not(caption) > * > * { padding: .9rem 1rem; border-bottom-color: #edf0f5; }
.table thead th { color: #7b8495; background: #fafbfc; font-size: .7rem; text-transform: uppercase; letter-spacing: .065em; white-space: nowrap; font-weight: 720; border-bottom-width: 1px; }
.table tbody td { vertical-align: middle; color: #3c4658; }
.table tbody tr:last-child td { border-bottom: 0; }
.table a.fw-semibold { color: #23314d; text-decoration: none; }
.table a.fw-semibold:hover { color: var(--app-primary); }
.pagination .page-link { border-color: var(--app-line); color: #566176; }
.pagination .page-item:first-child .page-link { border-radius: 8px 0 0 8px; }
.pagination .page-item:last-child .page-link { border-radius: 0 8px 8px 0; }
.empty-state { padding: 3.75rem 1.25rem !important; color: #8b95a6 !important; text-align: center; }

/* Statuses */
.badge { border-radius: 999px; padding: .42em .68em; font-size: .67rem; font-weight: 720; letter-spacing: .02em; }
.badge-PRODUCTION, .badge-OVERDUE { background: #fff0f1; color: #c92138; }
.badge-STAGING, .badge-DUE_SOON, .badge-PENDING { background: #fff5e8; color: #c66a00; }
.badge-DEV, .badge-DONE, .badge-OK, .badge-CURRENT, .badge-ACTIVE { background: #eaf9f1; color: #117a4e; }
.badge-IN_PROGRESS, .badge-DUE_TODAY, .badge-BEHIND { background: #edf4ff; color: #235ac7; }
.badge-ARCHIVED, .badge-UNKNOWN, .badge-PLANNED { background: #f0f2f5; color: #667085; }
.audit-action-badge { border: 1px solid #98a2b3; background: transparent; color: #667085; white-space: nowrap; }
.audit-action-CREATE,
.audit-action-UPGRADE,
.audit-action-MAINTENANCE,
.audit-action-RENEWAL,
.audit-action-ROTATION,
.audit-action-TPO_DONE,
.audit-action-EMAIL_SENT { border-color: #35a06f; background: #f3fbf7; color: #117a4e; }
.audit-action-UPDATE,
.audit-action-PASSWORD_CHANGE,
.audit-action-PASSWORD_RESET,
.audit-action-TPO_IN_PROGRESS { border-color: #6f9ee8; background: #f5f8ff; color: #235ac7; }
.audit-action-RELEASE_CHECK,
.audit-action-TLS_CHECK { border-color: #48a8b8; background: #f2fbfc; color: #167184; }
.audit-action-TPO_PENDING { border-color: #e3a84a; background: #fffaf1; color: #a85a00; }
.audit-action-ARCHIVE { border-color: #98a2b3; background: #f8f9fb; color: #667085; }
.audit-action-EMAIL_FAILED,
.audit-action-RELEASE_CHECK_FAILED,
.audit-action-TLS_CHECK_FAILED { border-color: #df7180; background: #fff7f8; color: #c92138; }
.metadata dt { color: #7c8799; font-weight: 550; }
.metadata dd { color: #2f3a4d; font-weight: 650; }
.notes { white-space: pre-wrap; }
.alert-stack { margin-bottom: 1rem; }
.alert { display: flex; align-items: center; gap: .65rem; border: 0; border-radius: 12px; font-size: .86rem; }

/* Compact sectioned forms */
.form-page { max-width: 1320px; }
.form-page-header { display: flex; align-items: end; justify-content: space-between; margin-bottom: 1.15rem; }
.form-back-link { display: inline-flex; align-items: center; gap: .35rem; margin-bottom: .55rem; color: #697386; font-size: .78rem; font-weight: 650; text-decoration: none; }
.form-back-link:hover { color: var(--app-primary); }
.sectioned-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; }
.sectioned-form-wide { grid-column: 1 / -1; }
.compact-safety { display: flex; align-items: center; gap: .65rem; min-height: 46px; padding: .7rem .9rem; border: 1px solid #f4dea4; border-radius: 12px; color: #785a12; background: #fff8df; font-size: .82rem; }
.compact-safety > i { flex: 0 0 auto; font-size: 1rem; }
.form-section { border: 1px solid rgba(222, 228, 238, .98); border-radius: 15px; background: #fff; box-shadow: 0 6px 22px rgba(23, 32, 51, .045); overflow: hidden; }
.form-section-header { display: flex; align-items: center; gap: .7rem; min-height: 64px; padding: .8rem 1rem; border-bottom: 1px solid #edf0f5; background: #fbfcfe; }
.form-section-header h2 { margin: 0 0 .12rem; font-size: .94rem; font-weight: 720; letter-spacing: -.015em; }
.form-section-header p { margin: 0; color: #8791a3; font-size: .72rem; }
.form-section-icon { display: grid; place-items: center; flex: 0 0 34px; height: 34px; border-radius: 10px; color: #2563eb; background: #eaf2ff; }
.form-section-icon-purple { color: #6d4cdb; background: #f0edff; }
.form-section-icon-green { color: #16825d; background: #e9f8f1; }
.form-section-icon-danger { color: #c9344b; background: #fff0f2; }
.form-section-body { padding: 1rem; }
.sectioned-form .form-label { margin-bottom: .35rem; font-size: .78rem; }
.sectioned-form .form-control, .sectioned-form .form-select { min-height: 40px; padding: .5rem .7rem; font-size: .84rem; }
.sectioned-form .input-group-text { padding: .5rem .7rem; font-size: .78rem; }
.compact-multi-select, .compact-notes { height: 112px; }
.choices { margin-bottom: 0; font-size: .84rem; }
.sectioned-form .choices__inner { min-height: 40px; padding: .28rem .5rem; border: 1px solid #d7dde7; border-radius: 10px; background: #fff; font-size: .84rem; }
.sectioned-form .choices.is-focused .choices__inner,
.sectioned-form .choices.is-open .choices__inner { border-color: #84adff; box-shadow: 0 0 0 4px rgba(37, 99, 235, .11); }
.sectioned-form .choices.is-open .choices__inner { border-radius: 10px 10px 0 0; }
.choices__list--multiple .choices__item { margin: .12rem .28rem .12rem 0; padding: .34rem .62rem; border: 1px solid #9ab9eb; border-radius: 999px; background: #f1f6ff; color: #235ac7; font-size: .75rem; font-weight: 650; }
.choices__list--multiple .choices__item.is-highlighted { border-color: #6f9ee8; background: #e6efff; }
.choices[data-type*=select-multiple] .choices__button { border-left-color: rgba(35, 90, 199, .28); filter: brightness(.55) sepia(1) hue-rotate(175deg) saturate(4); opacity: .75; }
.choices__input { min-width: 130px; margin: 0; padding: .38rem .28rem; background: transparent; color: var(--app-ink); font-size: .82rem; }
.choices__input::placeholder { color: #a4acba; }
.choices__list--dropdown,
.choices__list[aria-expanded] { z-index: 40; border-color: #d7dde7; border-radius: 0 0 10px 10px; box-shadow: 0 14px 30px rgba(23, 32, 51, .12); }
.choices__list--dropdown .choices__item,
.choices__list[aria-expanded] .choices__item { padding: .65rem .75rem; font-size: .82rem; }
.choices__list--dropdown .choices__item--selectable.is-highlighted,
.choices__list[aria-expanded] .choices__item--selectable.is-highlighted { background: #eff6ff; color: #1d4ed8; }
.choices__placeholder { color: #a4acba; opacity: 1; }
.form-actions { display: flex; justify-content: flex-end; gap: .65rem; padding-top: .1rem; }
.form-actions .btn { min-width: 112px; }
.project-availability { display: grid; align-content: center; min-height: 139px; padding: .25rem; }
.project-availability .form-switch { margin-bottom: .65rem; }
.project-availability .form-check-input { width: 2.5rem; height: 1.3rem; margin-right: .5rem; }
.danger-section { border-color: #f3d7dc; }
.role-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
.role-option { min-height: 39px; margin: 0; padding: .55rem .65rem .55rem 2rem; border: 1px solid #e8ebf1; border-radius: 9px; background: #fbfcfe; }
.role-option .form-check-input { margin-top: .1rem; }
.role-option .form-check-label { display: block; color: #49556a; font-size: .75rem; font-weight: 650; overflow-wrap: anywhere; }
.password-reset-form { display: grid; grid-template-columns: minmax(260px, 1fr) auto; align-items: end; gap: 1rem; max-width: 720px; }

/* Authentication */
.login-page { min-height: 100vh; margin: 0; padding: 10vh 10vw; display: grid; place-items: center; background: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, .08), transparent 34rem), #f3f6fb; }
.login-layout { width: 80vw; min-height: 80vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(390px, .95fr); border: 1px solid #dfe5ef; border-radius: 28px; background: #fff; box-shadow: 0 28px 80px rgba(23, 32, 51, .14); overflow: hidden; }
.login-brand-panel { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 80vh; padding: clamp(2.3rem, 5vw, 5rem); color: #fff; overflow: hidden; background: linear-gradient(145deg, #172554 0%, #1e40af 55%, #4f46e5 100%); }
.login-brand-panel::before, .login-brand-panel::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.13); }
.login-brand-panel::before { width: 430px; height: 430px; right: -190px; top: -125px; box-shadow: 0 0 0 65px rgba(255,255,255,.035), 0 0 0 130px rgba(255,255,255,.025); }
.login-brand-panel::after { width: 260px; height: 260px; left: -130px; bottom: -100px; box-shadow: 0 0 0 55px rgba(255,255,255,.035); }
.login-brand, .login-copy, .login-trust { position: relative; z-index: 1; }
.login-brand { display: flex; align-items: center; gap: .8rem; }
.login-brand .brand-mark { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.18); font-size: 1.25rem; backdrop-filter: blur(10px); }
.login-brand strong { font-size: 1.15rem; letter-spacing: -.025em; }
.login-copy { max-width: 430px; }
.login-eyebrow { display: inline-flex; align-items: center; gap: .45rem; margin-bottom: 1.25rem; color: #bfdbfe; font-size: .75rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.login-copy h1 { color: #fff; font-size: clamp(2.15rem, 4vw, 3.25rem); line-height: 1.08; font-weight: 760; }
.login-copy p { color: rgba(255,255,255,.72); font-size: 1rem; line-height: 1.7; margin: 1.2rem 0 0; }
.login-trust { display: flex; align-items: center; gap: .55rem; color: rgba(255,255,255,.7); font-size: .77rem; }
.login-form-panel { display: flex; align-items: center; justify-content: center; padding: clamp(2rem, 7vw, 6rem); }
.login-form-wrap { width: min(520px, 100%); }
.login-form-wrap .mobile-brand { display: none; }
.login-form-wrap h2 { font-size: 1.75rem; font-weight: 750; margin-bottom: .55rem; }
.login-form-wrap > p { color: var(--app-muted); margin-bottom: 2rem; line-height: 1.55; }
.login-form-wrap .form-label { font-size: .86rem; }
.login-form-wrap .form-control, .login-form-wrap .input-group-text { min-height: 50px; }
.login-form-wrap .btn { min-height: 50px; font-size: .95rem; margin-top: .4rem; }
.login-help { display: flex; align-items: center; gap: .5rem; margin-top: 1.3rem; color: #8a94a6; font-size: .75rem; }

@media (max-width: 991.98px) {
  .app-navbar { min-height: 66px; }
  .app-brand { margin-right: 0; }
  .navbar-collapse { padding: 1rem 0 .35rem; }
  .app-nav-links { gap: .15rem; }
  .user-menu { margin: .75rem 0 0; }
  .user-chip { width: 100%; max-width: none; justify-content: flex-start; }
  .user-identity strong { max-width: none; }
  .login-page { padding: clamp(1.25rem, 6vh, 3rem) clamp(1.25rem, 6vw, 3rem); }
  .login-layout { grid-template-columns: 1fr; width: min(500px, 100%); min-height: min(80vh, 720px); }
  .login-brand-panel { display: none; }
  .login-form-panel { min-height: min(80vh, 720px); padding: clamp(2rem, 8vw, 3.25rem); }
  .login-form-wrap .mobile-brand { display: flex; align-items: center; gap: .7rem; margin-bottom: 2.5rem; color: var(--app-navy); }
  .mobile-brand .brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: #fff; background: linear-gradient(145deg, var(--app-primary), var(--app-indigo)); }
  .sectioned-form { grid-template-columns: 1fr; }
  .sectioned-form-wide { grid-column: auto; }
}
@media (max-width: 575.98px) {
  .page-shell { padding-left: .9rem; padding-right: .9rem; }
  main.page-shell, main.container-fluid.page-shell { padding-top: 1.35rem !important; }
  .login-page { padding: 0; }
  .login-layout { min-height: 100vh; border: 0; border-radius: 0; box-shadow: none; }
  .login-form-panel { min-height: 100vh; padding: 1.5rem; }
  .input-group-text { padding-left: .6rem; padding-right: .6rem; font-size: .8rem; }
  .card-body { padding: 1rem; }
  .table > :not(caption) > * > * { padding: .8rem; }
  .form-page-header { margin-bottom: 1rem; }
  .form-section-body { padding: .85rem; }
  .form-actions { flex-direction: column-reverse; }
  .form-actions .btn { width: 100%; }
  .role-grid { grid-template-columns: 1fr; }
  .password-reset-form { grid-template-columns: 1fr; }
  .password-reset-form .btn { width: 100%; }
  .dashboard-date strong { font-size: clamp(.7rem, 3.5vw, .78rem); }
  .dashboard-coverage-copy { max-width: 68%; }
  .dashboard-outline-grid { right: .75rem; grid-template-columns: repeat(2, 30px); }
  .dashboard-outline-grid span { width: 30px; height: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .dashboard-outline-grid span { animation: none; }
}
