:root {
  --rich-blue: #2f8fcb;
  --rich-blue-dark: #173f73;
  --rich-navy: #20283a;
  --rich-muted: #758195;
  --rich-border: #dce6f1;
  --rich-bg: #f4f7fb;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--rich-bg);
  color: var(--rich-navy);
  font-family: Arial, Helvetica, sans-serif;
}

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

a {
  color: inherit;
}

.split {
  display: grid;
  min-height: 100vh;
}

.hero {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  background: var(--rich-blue-dark);
  color: white;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-image {
  background-image: url("/assets/signin-hero.jpeg");
  background-position: 58% center;
  background-size: cover;
  opacity: .96;
  transform: scale(1.02);
}

.hero-overlay {
  background: linear-gradient(105deg, rgba(19, 48, 82, .93), rgba(47, 143, 203, .54));
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: inherit;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 32px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 31px;
  font-weight: 900;
  letter-spacing: -1px;
}

.logo-mark {
  display: inline-block;
  width: 54px;
  height: 54px;
  border: 4px solid currentColor;
  border-left-color: transparent;
  border-radius: 999px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--rich-blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: rgba(255, 255, 255, .72);
}

.hero h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(44px, 6vw, 74px);
  line-height: 1.06;
}

.hero p {
  max-width: 620px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, .84);
  font-size: 22px;
  line-height: 1.5;
}

.hero-cards {
  display: none;
  gap: 14px;
  margin-top: 48px;
}

.hero-card {
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  background: rgba(255, 255, 255, .13);
  padding: 18px;
  backdrop-filter: blur(10px);
}

.hero-card strong {
  display: block;
  margin-bottom: 8px;
}

.hero-card span {
  color: rgba(255, 255, 255, .8);
  font-size: 14px;
  line-height: 1.45;
}

.form-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 20px;
}

.panel {
  width: min(100%, 760px);
  border-radius: 8px;
  background: white;
  padding: clamp(26px, 4vw, 40px);
  box-shadow: 0 20px 70px rgba(32, 40, 58, .08);
}

.panel h2 {
  margin: 0;
  color: var(--rich-navy);
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.08;
}

.support {
  margin: 14px 0 0;
  color: var(--rich-muted);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.55;
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 30px;
  border-radius: 8px;
  background: #f3f7fb;
  padding: 4px;
}

.tabs label {
  display: flex;
  min-height: 44px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: #718096;
  font-weight: 900;
}

.tabs input {
  position: absolute;
  opacity: 0;
}

.tabs label:has(input:checked) {
  background: white;
  color: var(--rich-blue);
  box-shadow: 0 1px 7px rgba(39, 47, 64, .08);
}

.grid {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.field {
  display: block;
  color: #728198;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.field input,
.field textarea,
.file-field {
  width: 100%;
  margin-top: 8px;
  border: 1px solid var(--rich-border);
  border-radius: 8px;
  background: white;
  color: var(--rich-navy);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  outline: none;
  text-transform: none;
  transition: border-color .18s, box-shadow .18s;
}

.field input {
  height: 52px;
  padding: 0 14px;
}

.field textarea {
  min-height: 108px;
  padding: 14px;
  resize: vertical;
}

.file-field {
  min-height: 86px;
  padding: 14px;
}

.file-field small {
  display: block;
  margin-top: 8px;
  color: #8a94a6;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.file-field input {
  height: auto;
  margin-top: 10px;
  border: 0;
  padding: 0;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--rich-blue);
  box-shadow: 0 0 0 3px rgba(47, 143, 203, .18);
}

.section-title {
  grid-column: 1 / -1;
  margin-top: 8px;
  border-top: 1px solid #edf2f7;
  padding-top: 22px;
}

.section-title h3 {
  margin: 0;
  font-size: 18px;
}

.section-title p {
  margin: 6px 0 0;
  color: var(--rich-muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.full {
  grid-column: 1 / -1;
}

.pj-only {
  display: none;
}

body:has(input[value="PJ"]:checked) .pj-only {
  display: block;
}

body:has(input[value="PJ"]:checked) .pf-only {
  display: none;
}

.error-list {
  margin-top: 22px;
  border-radius: 8px;
  background: #fff1f1;
  padding: 14px 18px;
  color: #b42318;
  font-weight: 700;
}

.success {
  text-align: center;
  padding: 28px 0;
}

.success-icon {
  display: grid;
  width: 70px;
  height: 70px;
  margin: 0 auto 24px;
  place-items: center;
  border-radius: 999px;
  background: #e9f8ef;
  color: #2b8a3e;
  font-size: 36px;
}

.button {
  display: inline-flex;
  min-height: 54px;
  width: 100%;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 8px;
  background: var(--rich-blue);
  color: white;
  font-size: 16px;
  font-weight: 900;
  text-decoration: none;
  transition: background .18s, transform .18s;
}

.button:hover {
  background: #1e73ad;
  transform: translateY(-1px);
}

.button.secondary {
  width: auto;
  min-height: 46px;
  border: 1px solid #c7d8e8;
  background: white;
  color: var(--rich-blue);
  padding: 0 18px;
}

.actions {
  margin-top: 24px;
}

.admin {
  min-height: 100vh;
  padding: 30px;
}

.admin-wrap {
  max-width: 1220px;
  margin: 0 auto;
}

.admin-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.table-card {
  overflow: auto;
  border-radius: 8px;
  background: white;
  box-shadow: 0 18px 50px rgba(32, 40, 58, .08);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1050px;
}

th,
td {
  border-bottom: 1px solid #edf2f7;
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
}

th {
  color: #728198;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

td {
  font-size: 14px;
  font-weight: 600;
}

.badge {
  display: inline-flex;
  border-radius: 999px;
  background: #eef8ff;
  color: var(--rich-blue);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.doc-list {
  margin: 8px 0 0;
  padding-left: 18px;
}

.doc-list a {
  color: var(--rich-blue);
  font-weight: 800;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.filters input,
.filters select {
  min-height: 42px;
  border: 1px solid var(--rich-border);
  border-radius: 8px;
  padding: 0 12px;
}

.hp {
  position: absolute;
  left: -10000px;
}

@media (min-width: 860px) {
  .split {
    grid-template-columns: 55% 45%;
  }

  .hero {
    min-height: 100vh;
  }

  .hero-content {
    padding: 70px 58px;
  }

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

@media (min-width: 1180px) {
  .hero-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
