:root {
  --color-bg: #151419;
  --color-bg-raised: #18191e;
  --color-surface: #1b1c20;
  --color-surface-alt: #202228;
  --color-surface-soft: #292c33;
  --color-text: #ffffff;
  --color-muted: #b9bcc3;
  --color-accent: #2581a0;
  --color-accent-strong: #1d6f8a;
  --color-accent-soft: #6ac5e4;
  --color-accent-light: #94c6db;
  --color-accent-hover: #52b3d3;
  --color-accent-tint: rgba(37, 129, 160, 0.16);
  --color-border: #34373d;
  --color-border-strong: #4a535c;
  --color-success: #5fc48d;
  --color-success-soft: rgba(95, 196, 141, 0.14);
  --color-danger: #ef7777;
  --color-danger-soft: rgba(239, 119, 119, 0.14);
  --color-info: #76a9e8;
  --color-info-soft: rgba(118, 169, 232, 0.14);
  --radius: 10px;
  --radius-small: 6px;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.3);
  --shadow-small: 0 8px 24px rgba(0, 0, 0, 0.2);
  --content-width: 1180px;
  --transition: 160ms ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--color-bg);
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.018) 25%, transparent 25%) 0 0 / 34px 34px,
    var(--color-bg);
  color: var(--color-text);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

a {
  color: var(--color-text);
  text-decoration-color: rgba(106, 197, 228, 0.55);
  text-underline-offset: 0.22em;
  transition: color var(--transition), text-decoration-color var(--transition);
}

a:hover {
  color: var(--color-accent-hover);
  text-decoration-color: currentColor;
}

button,
input,
select,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--color-accent-light);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  transform: translateY(-180%);
  border-radius: var(--radius-small);
  background: var(--color-accent-soft);
  color: #101214;
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(calc(100% - 3rem), var(--content-width));
  margin-inline: auto;
}

.app-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid var(--color-border);
  background: rgba(21, 20, 25, 0.96);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  width: min(calc(100% - 3rem), var(--content-width));
  min-height: 76px;
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--color-text);
  text-decoration: none;
}

.brand:hover {
  color: var(--color-text);
}

.brand-logo {
  display: block;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  line-height: 1.12;
}

.brand-copy strong {
  font-family: "Arial Narrow", "Segoe UI", sans-serif;
  font-size: 0.98rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.brand-copy small {
  margin-top: 0.28rem;
  color: var(--color-muted);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.primary-nav a {
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-small);
  color: #d9dde0;
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}

.primary-nav a:hover {
  background: var(--color-surface-alt);
  color: var(--color-text);
}

.account-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
}

.account-identity {
  display: grid;
  justify-items: end;
  line-height: 1.2;
}

.account-name {
  font-size: 0.9rem;
  font-weight: 700;
}

.role-chip {
  margin-top: 0.2rem;
  color: var(--color-muted);
  font-size: 0.72rem;
}

.main-content {
  padding-block: 3rem 4.5rem;
}

.page-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.page-heading-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--color-accent);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: "Arial Narrow", "Segoe UI", sans-serif;
  line-height: 1.15;
}

h1 {
  margin-bottom: 0.6rem;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.035em;
}

h2 {
  margin-bottom: 1rem;
  font-size: 1.35rem;
}

h3 {
  margin-bottom: 0.65rem;
  font-size: 1.05rem;
}

.lede,
.muted {
  color: var(--color-muted);
}

.lede {
  max-width: 680px;
  margin-bottom: 0;
  font-size: 1.03rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
}

.button,
button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0.68rem 1rem;
  border: 1px solid transparent;
  border-radius: var(--radius-small);
  background: var(--color-accent-soft);
  color: #101214;
  cursor: pointer;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
}

.button:hover,
button:hover {
  transform: translateY(-1px);
  background: var(--color-accent-hover);
  color: #101214;
}

.button-secondary {
  border-color: var(--color-border-strong);
  background: var(--color-surface-alt);
  color: var(--color-text);
}

.button-secondary:hover {
  border-color: #626d77;
  background: var(--color-surface-soft);
  color: var(--color-text);
}

.button-success {
  background: var(--color-success);
  color: #07150e;
}

.button-danger {
  border-color: rgba(239, 119, 119, 0.5);
  background: var(--color-danger-soft);
  color: #ffc4c4;
}

.button-danger:hover {
  border-color: var(--color-danger);
  background: rgba(239, 119, 119, 0.23);
  color: #fff;
}

.button-ghost {
  border-color: var(--color-border);
  background: transparent;
  color: var(--color-muted);
}

.button-ghost:hover {
  border-color: var(--color-border-strong);
  background: var(--color-surface-alt);
  color: var(--color-text);
}

.button-small {
  min-height: 36px;
  padding: 0.52rem 0.75rem;
  font-size: 0.8rem;
}

.text-link {
  font-weight: 700;
}

.panel,
.card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.018), transparent 45%), var(--color-surface);
  box-shadow: var(--shadow-small);
}

.panel {
  padding: clamp(1.25rem, 3vw, 2rem);
}

.card {
  padding: 1.25rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.summary-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-border);
}

.summary-item {
  min-width: 150px;
  flex: 1;
  padding: 1rem 1.15rem;
  background: var(--color-surface);
}

.summary-label,
.meta-label {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--color-muted);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.summary-value {
  font-size: 1.02rem;
  font-weight: 750;
}

.detail-list {
  display: grid;
  gap: 0.8rem;
  margin: 0;
}

.detail-list div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--color-border);
}

.detail-list div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.detail-list dt {
  color: var(--color-muted);
}

.detail-list dd {
  margin: 0;
  font-weight: 750;
  text-align: right;
}

.profile-tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.65rem;
  overflow-x: auto;
  border-bottom: 1px solid var(--color-border);
}

.profile-tab {
  padding: 0.58rem 0.8rem;
  border-radius: var(--radius-small);
  color: var(--color-muted);
  font-size: 0.86rem;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.profile-tab:hover,
.profile-tab-active {
  background: var(--color-accent-tint);
  color: var(--color-accent-light);
}

.profile-tab-disabled {
  opacity: 0.58;
}

.calendar-summary .summary-item {
  min-width: 125px;
}

.calendar-selector-panel {
  max-width: 680px;
}

.calendar-selector-panel form,
.calendar-user-control {
  display: flex;
  align-items: flex-end;
  gap: 0.8rem;
}

.calendar-selector-panel .form-field,
.calendar-user-field {
  flex: 1;
}

.calendar-user-control {
  margin-bottom: 1.5rem;
  padding: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-small);
  background: var(--color-surface);
}

.calendar-user-field label {
  display: block;
  margin-bottom: 0.42rem;
  color: var(--color-muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.date-filter-bar {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-small);
  background: var(--color-surface);
}

.date-filter-field {
  min-width: min(100%, 260px);
}

.date-filter-field label {
  display: block;
  margin-bottom: 0.42rem;
  color: var(--color-muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.date-filter-field .field-error {
  margin-bottom: 0;
}

.statistics-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.statistics-kpi {
  min-height: 145px;
}

.statistics-kpi-featured {
  border-color: var(--color-accent);
  background: linear-gradient(145deg, var(--color-accent-tint), transparent 60%), var(--color-surface);
}

.statistics-value {
  display: block;
  margin: 0.45rem 0 0.25rem;
  color: var(--color-text);
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 800;
}

.statistics-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: 1rem;
  align-items: start;
}

.statistics-table-shell {
  overflow-x: auto;
}

.statistics-table-shell .data-table {
  min-width: 560px;
}

.statistics-number {
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
}

.calendar-shell {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  box-shadow: var(--shadow-small);
}

.monthly-calendar {
  width: 100%;
  min-width: 980px;
  table-layout: fixed;
  border-collapse: collapse;
}

.monthly-calendar th {
  padding: 0.75rem 0.55rem;
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface-alt);
  color: var(--color-muted);
  font-size: 0.7rem;
  letter-spacing: 0.07em;
  text-align: left;
  text-transform: uppercase;
}

.monthly-calendar th:last-child,
.calendar-day:last-child {
  border-right: 0;
}

.calendar-day {
  position: relative;
  height: 158px;
  padding: 0.55rem;
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

.monthly-calendar tbody tr:last-child .calendar-day {
  border-bottom: 0;
}

.calendar-day-outside {
  background: rgba(255, 255, 255, 0.012);
  color: var(--color-muted);
  opacity: 0.48;
}

.calendar-day-selected {
  outline: 3px solid var(--color-accent-soft);
  outline-offset: -3px;
  background: var(--color-accent-tint);
}

.searched-date-label {
  display: inline-block;
  margin-bottom: 0.4rem;
  color: var(--color-accent-light);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.calendar-day-number {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--color-muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.calendar-workday {
  display: flex;
  min-height: 115px;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 0.55rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-small);
  background: var(--color-surface-alt);
  text-decoration: none;
  transition: border-color var(--transition), background var(--transition);
}

.calendar-workday:hover {
  border-color: var(--color-accent);
  background: var(--color-surface-soft);
  color: var(--color-text);
}

.calendar-total {
  color: var(--color-text);
  font-size: 0.92rem;
}

.calendar-entry {
  color: var(--color-muted);
  font-size: 0.72rem;
  white-space: nowrap;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  padding: 0.36rem 0.62rem;
  border: 1px solid var(--color-border-strong);
  border-radius: 999px;
  background: var(--color-surface-alt);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.025em;
  white-space: nowrap;
}

.status-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.status-draft {
  color: #c6cbd0;
}

.status-submitted {
  border-color: rgba(118, 169, 232, 0.4);
  background: var(--color-info-soft);
  color: #a9ceff;
}

.status-approved {
  border-color: rgba(95, 196, 141, 0.42);
  background: var(--color-success-soft);
  color: #8de0b1;
}

.status-rejected {
  border-color: rgba(239, 119, 119, 0.42);
  background: var(--color-danger-soft);
  color: #ffaaaa;
}

.table-shell {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  box-shadow: var(--shadow-small);
}

.data-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  background: var(--color-surface-alt);
  color: var(--color-muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.data-table tbody tr {
  transition: background var(--transition);
}

.data-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.018);
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.date-cell {
  font-weight: 750;
  white-space: nowrap;
}

.time-range {
  display: block;
  color: var(--color-text);
  font-weight: 750;
  white-space: nowrap;
}

.entry-detail {
  display: block;
  max-width: 260px;
  margin-top: 0.2rem;
  color: var(--color-muted);
  font-size: 0.82rem;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.table-actions form {
  margin: 0;
}

.rejection-row td,
.notice-danger {
  background: var(--color-danger-soft);
  color: #ffd0d0;
}

.notice {
  margin-bottom: 1.5rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius-small);
  background: var(--color-surface-alt);
}

.notice strong {
  display: block;
  margin-bottom: 0.25rem;
}

.notice p:last-child {
  margin-bottom: 0;
}

.entry-card {
  display: flex;
  min-height: 190px;
  flex-direction: column;
  gap: 0.9rem;
}

.entry-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--color-border);
}

.period-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-accent);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.period-label::before {
  width: 18px;
  height: 2px;
  background: currentColor;
  content: "";
}

.entry-time {
  font-family: "Arial Narrow", "Segoe UI", sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.entry-copy {
  flex: 1;
  color: #d4d8db;
}

.entry-empty {
  display: grid;
  flex: 1;
  place-items: center;
  color: var(--color-muted);
  text-align: center;
}

.entry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding-top: 0.4rem;
}

.section-block {
  margin-top: 2rem;
}

.form-shell {
  max-width: 760px;
}

.form-shell-wide {
  max-width: 960px;
}

.form-errors,
.field-errors {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
  color: #ffaaaa;
  font-size: 0.85rem;
}

.form-errors {
  margin-bottom: 1rem;
  padding: 0.9rem 1rem 0.9rem 2rem;
  border: 1px solid rgba(239, 119, 119, 0.42);
  border-radius: var(--radius-small);
  background: var(--color-danger-soft);
}

.form-field {
  margin-bottom: 1.15rem;
}

.form-field > label,
.checkbox-row label {
  display: block;
  margin-bottom: 0.42rem;
  color: #e6e8ea;
  font-size: 0.86rem;
  font-weight: 750;
}

input:not([type="checkbox"]):not([type="hidden"]),
select,
textarea {
  width: 100%;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-small);
  background: #111416;
  color: var(--color-text);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

input:not([type="checkbox"]):not([type="hidden"]),
select {
  min-height: 46px;
  padding: 0.65rem 0.75rem;
}

textarea {
  min-height: 110px;
  padding: 0.75rem;
  resize: vertical;
}

input:hover,
select:hover,
textarea:hover {
  border-color: #626d77;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--color-accent);
  background: #15191c;
  box-shadow: 0 0 0 3px var(--color-accent-tint);
}

.form-field-error input,
.form-field-error select,
.form-field-error textarea {
  border-color: var(--color-danger);
}

.help-text {
  margin-top: 0.4rem;
  color: var(--color-muted);
  font-size: 0.78rem;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.checkbox-row input {
  width: 19px;
  height: 19px;
  margin: 0;
  accent-color: var(--color-accent);
}

.checkbox-row label {
  margin: 0;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.fieldset {
  margin: 1.25rem 0;
  padding: 1.25rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface-alt);
}

.fieldset legend {
  padding-inline: 0.45rem;
  color: var(--color-accent);
  font-weight: 800;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1rem;
}

.form-grid .form-field:last-child {
  grid-column: 1 / -1;
}

.messages {
  display: grid;
  gap: 0.6rem;
  padding-top: 1rem;
}

.message {
  padding: 0.9rem 1rem;
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-info);
  border-radius: var(--radius-small);
  background: var(--color-surface);
  box-shadow: var(--shadow-small);
}

.message-success {
  border-left-color: var(--color-success);
}

.message-error {
  border-left-color: var(--color-danger);
}

.empty-state {
  padding: 3rem 1.5rem;
  border: 1px dashed var(--color-border-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.012);
  color: var(--color-muted);
  text-align: center;
}

.timeline {
  position: relative;
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline::before {
  position: absolute;
  top: 0.9rem;
  bottom: 0.9rem;
  left: 10px;
  width: 1px;
  background: var(--color-border-strong);
  content: "";
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 1rem;
}

.timeline-dot {
  z-index: 1;
  width: 11px;
  height: 11px;
  margin: 0.45rem 0 0 5px;
  border: 2px solid var(--color-bg);
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 2px var(--color-accent);
}

.timeline-card {
  padding: 1rem 1.1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-small);
  background: var(--color-surface-alt);
}

.timeline-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.timeline-meta {
  color: var(--color-muted);
  font-size: 0.8rem;
}

.timeline-transition {
  margin-top: 0.55rem;
  color: var(--color-muted);
  font-size: 0.85rem;
}

.login-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 2rem;
  background:
    linear-gradient(rgba(37, 129, 160, 0.055) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(37, 129, 160, 0.055) 1px, transparent 1px) 0 0 / 40px 40px,
    radial-gradient(circle at 18% 15%, rgba(37, 129, 160, 0.17), transparent 34%),
    var(--color-bg);
}

.login-main {
  width: min(100%, 1020px);
}

.login-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(350px, 0.85fr);
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: var(--color-surface);
  box-shadow: var(--shadow);
}

.login-brand-panel {
  position: relative;
  display: flex;
  min-height: 560px;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(2rem, 5vw, 4rem);
  overflow: hidden;
  border-right: 1px solid var(--color-border);
  background: linear-gradient(145deg, #24292e, #15181b 68%);
}

.login-brand-panel::after {
  position: absolute;
  right: -100px;
  bottom: -180px;
  width: 380px;
  height: 520px;
  transform: rotate(32deg);
  border: 1px solid rgba(106, 197, 228, 0.3);
  background: rgba(37, 129, 160, 0.08);
  content: "";
}

.login-brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.login-brand-logo {
  width: 54px;
  height: 54px;
}

.login-brand-copy strong {
  display: block;
  font-family: "Arial Narrow", "Segoe UI", sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.login-brand-copy span {
  color: var(--color-muted);
  font-size: 0.82rem;
}

.login-intro {
  position: relative;
  z-index: 1;
  max-width: 470px;
}

.login-intro h1 {
  max-width: 440px;
  font-size: clamp(2.6rem, 6vw, 4.5rem);
}

.login-intro p {
  max-width: 420px;
  color: var(--color-muted);
  font-size: 1.02rem;
}

.login-form-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 3.5rem);
  background: var(--color-bg-raised);
}

.login-form-panel h2 {
  margin-bottom: 0.4rem;
  font-size: 1.65rem;
}

.login-form-panel > p {
  margin-bottom: 1.75rem;
  color: var(--color-muted);
}

.login-form-panel .button {
  width: 100%;
  margin-top: 0.25rem;
}

@media (max-width: 960px) {
  .header-inner {
    grid-template-columns: auto 1fr;
    gap: 1rem;
    padding-block: 0.8rem;
  }

  .primary-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    order: 3;
    border-top: 1px solid var(--color-border);
    padding-top: 0.6rem;
  }

  .account-menu {
    grid-column: 2;
    grid-row: 1;
  }

  .login-layout {
    grid-template-columns: 1fr;
  }

  .login-brand-panel {
    min-height: 330px;
    border-right: 0;
    border-bottom: 1px solid var(--color-border);
  }
}

@media (max-width: 700px) {
  .container,
  .header-inner {
    width: min(calc(100% - 1.5rem), var(--content-width));
  }

  .main-content {
    padding-block: 2rem 3rem;
  }

  .page-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .page-heading .button-row,
  .page-heading .button {
    width: 100%;
  }

  .account-identity {
    display: none;
  }

  .brand-copy strong {
    font-size: 0.82rem;
  }

  .primary-nav {
    overflow-x: auto;
  }

  .primary-nav a {
    white-space: nowrap;
  }

  .card-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .statistics-kpi-grid,
  .statistics-layout {
    grid-template-columns: 1fr;
  }

  .calendar-selector-panel form,
  .calendar-user-control,
  .date-filter-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .calendar-selector-panel .button,
  .calendar-user-control .button,
  .date-filter-bar .button {
    width: 100%;
  }

  .form-grid .form-field:last-child {
    grid-column: auto;
  }

  .login-page {
    padding: 0;
  }

  .login-layout {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .login-brand-panel {
    min-height: 270px;
    padding: 1.5rem;
  }

  .login-intro h1 {
    font-size: 2.35rem;
  }

  .login-form-panel {
    padding: 2rem 1.5rem 3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
