:root {
  --uad-red: #b51f2b;
  --uad-red-dark: #8f1721;
  --ink: #202020;
  --muted: #6f747b;
  --line: #d7dce2;
  --line-soft: #eceff2;
  --surface: #ffffff;
  --page: #f3f4f6;
  --soft: #fafafa;
}

html {
  font-size: 14px;
  min-height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 15px;
  }
}

body {
  background: var(--page);
  color: var(--ink);
  min-height: 100vh;
}

a {
  color: var(--uad-red);
}

a:hover,
a:focus {
  color: var(--uad-red-dark);
}

.auth-page {
  background:
    linear-gradient(180deg, #fff 0, #f5f5f5 130px),
    var(--page);
}

.auth-container {
  min-height: calc(100vh - 58px);
}

.portal-navbar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  border-top: 5px solid var(--uad-red);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
  margin-bottom: 22px;
}

.portal-brand {
  align-items: center;
  color: var(--ink);
  display: inline-flex;
  font-weight: 750;
  gap: 14px;
  padding-bottom: 10px;
  padding-top: 10px;
  text-decoration: none;
  white-space: normal;
}

.portal-brand img {
  flex: 0 0 auto;
  height: 72px;
  object-fit: contain;
  width: 72px;
}

.portal-brand strong,
.portal-brand small {
  display: block;
}

.portal-brand:hover,
.portal-brand:focus {
  color: var(--ink);
}

.portal-brand small {
  color: var(--muted);
  font-size: .75rem;
  margin-top: 1px;
}

.portal-navbar .nav-link {
  color: #44484e;
  font-weight: 700;
  padding-left: 14px;
  padding-right: 14px;
}

.portal-navbar .nav-link:hover,
.portal-navbar .nav-link:focus {
  color: var(--uad-red);
}

.portal-container {
  max-width: 1420px;
}

.footer {
  background: transparent;
  border-top: 1px solid var(--line);
  color: var(--muted) !important;
  font-size: .84rem;
  margin-top: 34px;
  padding: 15px 0;
}

.auth-page .footer {
  border-top: 0;
  margin-top: 0;
  padding-bottom: 18px;
  text-align: center;
}

.login-shell {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: calc(100vh - 88px);
  padding: 30px 16px 22px;
}

.login-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 3px;
  border-top: 5px solid var(--uad-red);
  box-shadow: 0 18px 42px rgba(16, 20, 24, .12);
  max-width: 390px;
  padding: 28px 30px 30px;
  width: 100%;
}

.login-logo {
  margin-bottom: 10px;
  text-align: center;
}

.login-logo img {
  height: 98px;
  object-fit: contain;
  width: 98px;
}

.login-heading {
  margin-bottom: 20px;
  text-align: center;
}

.login-links {
  margin-top: 16px;
  text-align: center;
}

.login-links a {
  font-weight: 750;
  text-decoration: none;
}

.eyebrow {
  color: #3f4246;
  display: block;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  color: var(--ink);
  font-size: 1.72rem;
  font-weight: 800;
  margin: 4px 0 0;
}

h2 {
  align-items: center;
  color: var(--ink);
  display: flex;
  font-size: 1.02rem;
  font-weight: 800;
  gap: 9px;
  margin-bottom: 16px;
}

h2::before {
  background: var(--uad-red);
  content: "";
  height: 18px;
  width: 4px;
}

.portal-header {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 5px solid var(--uad-red);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .06);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 17px 20px;
}

.portal-save-alert {
  align-items: center;
  border: 1px solid rgba(0, 0, 0, .08);
  border-left: 5px solid currentColor;
  box-shadow: 0 14px 34px rgba(32, 36, 43, .18);
  display: flex;
  gap: 8px;
  max-width: min(560px, calc(100vw - 28px));
  position: fixed;
  right: 18px;
  top: 90px;
  z-index: 1100;
}

.portal-save-alert span {
  padding-right: 10px;
}

.rfc-lock {
  color: var(--muted);
  font-weight: 750;
  margin-top: 4px;
}

.portal-tabs {
  background: transparent;
  border-bottom: 1px solid var(--line);
  gap: 0;
  margin-top: 18px;
}

.portal-tabs .nav-link {
  background: #e8eaed;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 3px 3px 0 0;
  color: #4e5359;
  font-weight: 750;
  margin-right: 4px;
  min-height: 41px;
}

.portal-tabs .nav-link:hover,
.portal-tabs .nav-link:focus {
  background: #f7f7f7;
  color: var(--uad-red);
}

.portal-tabs .nav-link.active {
  background: var(--surface);
  color: var(--uad-red);
  position: relative;
}

.portal-tabs .nav-link.active::before {
  background: var(--uad-red);
  content: "";
  height: 4px;
  left: -1px;
  position: absolute;
  right: -1px;
  top: -1px;
}

.portal-surface {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 0;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .07);
  padding: 24px;
}

.portal-form {
  max-width: 1200px;
}

.form-grid {
  display: grid;
  gap: 15px 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-section {
  border-top: 1px solid var(--line-soft);
  padding-top: 20px;
}

.form-section + .form-section {
  margin-top: 26px;
}

.form-section:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.field label,
.form-label {
  color: #363a40;
  display: block;
  font-size: .84rem;
  font-weight: 750;
  margin-bottom: 6px;
}

.field.span-2 {
  grid-column: span 2;
}

.form-control,
.form-select {
  border-color: #c3c8cf;
  border-radius: 3px;
  min-height: 38px;
}

.form-control:hover,
.form-select:hover {
  border-color: #9fa7b1;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--uad-red);
  box-shadow: 0 0 0 .16rem rgba(181, 31, 43, .14);
}

.lock-field {
  background: #f0f1f3;
  color: #4d5157;
  font-weight: 750;
}

.btn {
  border-radius: 3px;
  font-weight: 750;
}

.btn-primary {
  background: var(--uad-red);
  border-color: var(--uad-red);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--uad-red-dark);
  border-color: var(--uad-red-dark);
}

.btn-outline-primary {
  border-color: var(--uad-red);
  color: var(--uad-red);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background: var(--uad-red);
  border-color: var(--uad-red);
  color: #fff;
}

.btn-outline-secondary {
  border-color: #9fa5ad;
  color: #3f4349;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
  background: #3f4349;
  border-color: #3f4349;
  color: #fff;
}

.alert {
  border-radius: 3px;
}

.alert-warning {
  background: #fff8e7;
  color: #684908;
}

.alert-success {
  background: #e9f6ef;
  color: #1d6040;
}

.document-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
}

.doc-list {
  border: 1px solid var(--line);
  overflow: hidden;
}

.doc-item {
  align-items: center;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  min-height: 46px;
  padding: 11px 14px;
}

.doc-item:last-child {
  border-bottom: 0;
}

.doc-item-detailed {
  align-items: flex-start;
}

.doc-item-warning {
  background: #fff8e6;
  border-left: 4px solid #d79a1e;
  padding-left: 10px;
}

.doc-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.doc-copy strong {
  color: var(--ink);
  font-size: .95rem;
}

.doc-copy span,
.doc-copy small {
  color: var(--muted);
}

.doc-copy small {
  line-height: 1.25;
}

.doc-muted {
  color: #87909a !important;
}

.doc-warning {
  color: #7c560f !important;
  font-weight: 750;
}

.documents-expired-alert {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.upload-panel {
  background: var(--soft);
  border: 1px solid var(--line);
  padding: 18px;
}

@media (max-width: 992px) {
  .form-grid,
  .document-grid {
    grid-template-columns: 1fr;
  }

  .field.span-2 {
    grid-column: auto;
  }

  .portal-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .portal-save-alert {
    left: 14px;
    right: 14px;
    top: 78px;
  }
}

@media (max-width: 576px) {
  .portal-brand {
    align-items: flex-start;
  }

  .portal-brand img {
    height: 40px;
    width: 40px;
  }

  .login-panel {
    padding: 24px 22px 26px;
  }

  .portal-tabs {
    border-bottom: 0;
    gap: 6px;
  }

  .portal-tabs .nav-link {
    border: 1px solid var(--line);
    margin-right: 0;
    width: 100%;
  }

  .portal-surface {
    border-top: 1px solid var(--line);
    padding: 16px;
  }
}
