:root {
  color-scheme: dark;
  --navy-950: #041020;
  --navy-900: #06152b;
  --navy-800: #0a2242;
  --navy-700: #12345d;
  --white: #fff;
  --ink: #111827;
  --muted: #b9c9dd;
  --line: rgba(255, 255, 255, 0.14);
  --orange: #ff8a00;
  --orange-strong: #f57400;
  --pink: #f52a9b;
  --blue: #2aa8ff;
  --green: #29c687;
  --red: #ff6b6b;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background:
    radial-gradient(circle at 90% 10%, rgba(42, 168, 255, 0.12), transparent 32%),
    var(--navy-900);
  color: var(--white);
  line-height: 1.55;
}

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

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 1000;
  background: var(--white);
  color: var(--ink);
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(1160px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(4, 16, 32, 0.9);
  backdrop-filter: blur(14px);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 900;
}

.brand img {
  width: 116px;
  background: var(--white);
  padding: 5px;
  border-radius: 11px;
}

.nav-actions,
.button-row,
.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  min-height: 44px;
  padding: 11px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--white);
  background: var(--navy-700);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(42, 168, 255, 0.52);
  outline-offset: 2px;
}

.button-primary {
  background: var(--orange);
}

.button-primary:hover {
  background: var(--orange-strong);
}

.button-employer {
  background: linear-gradient(90deg, var(--pink), var(--blue));
}

.button-quiet {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
}

.button-danger {
  background: rgba(255, 107, 107, 0.18);
  color: #ffd8d8;
  border: 1px solid rgba(255, 107, 107, 0.4);
}

.button[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.page-main {
  padding: 54px 0 80px;
}

.page-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.eyebrow {
  margin: 0 0 8px;
  color: #ffb85e;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.08;
}

h2 {
  font-size: clamp(1.45rem, 3vw, 2rem);
}

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

.lede {
  font-size: 1.05rem;
}

.panel,
.job-card,
.application-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(9, 29, 57, 0.86);
  box-shadow: var(--shadow);
}

.panel {
  padding: clamp(20px, 4vw, 34px);
}

.auth-grid,
.dashboard-grid,
.form-grid {
  display: grid;
  gap: 24px;
}

.auth-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  align-items: start;
}

.dashboard-grid {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
  align-items: start;
}

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

.field {
  display: grid;
  gap: 7px;
}

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

label,
legend {
  color: #e9f0f8;
  font-size: 0.9rem;
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  color: var(--white);
  background: #071a34;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 12px 14px;
}

textarea {
  min-height: 128px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #8398b3;
}

.hint {
  margin: 0;
  color: #9eb0c6;
  font-size: 0.8rem;
}

.checkbox-field {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
}

.checkbox-field input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--orange);
}

.checkbox-field label {
  font-weight: 500;
}

.message {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.message-info {
  color: #d9ecff;
  background: rgba(42, 168, 255, 0.12);
}

.message-success {
  color: #d9fff0;
  background: rgba(41, 198, 135, 0.13);
  border-color: rgba(41, 198, 135, 0.38);
}

.message-error {
  color: #ffe1e1;
  background: rgba(255, 107, 107, 0.12);
  border-color: rgba(255, 107, 107, 0.4);
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 6px;
  margin-bottom: 22px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
}

.tab {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--muted);
  background: transparent;
  font-weight: 800;
  cursor: pointer;
}

.tab[aria-selected="true"] {
  color: var(--white);
  background: var(--navy-700);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.stat {
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
}

.stat strong {
  display: block;
  font-size: 1.7rem;
}

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

.job-list,
.application-list {
  display: grid;
  gap: 14px;
}

.job-card,
.application-card {
  padding: 20px;
  box-shadow: none;
}

.job-card-top,
.application-card-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status-published,
.status-new {
  color: #caffea;
  background: rgba(41, 198, 135, 0.16);
}

.status-draft {
  color: #fff1cc;
  background: rgba(255, 184, 94, 0.16);
}

.status-closed,
.status-rejected {
  color: #ffdcdc;
  background: rgba(255, 107, 107, 0.16);
}

.copy-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 14px;
}

.copy-row input {
  min-width: 0;
}

.empty-state {
  padding: 28px 16px;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  text-align: center;
  color: var(--muted);
}

.details-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.details-list div {
  padding: 13px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.details-list dt {
  color: var(--muted);
  font-size: 0.76rem;
}

.details-list dd {
  margin: 3px 0 0;
  font-weight: 750;
}

.job-description {
  white-space: pre-line;
}

.file-list {
  display: grid;
  gap: 8px;
}

.file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
}

.file-row small {
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  color: var(--muted);
  text-align: center;
}

.hidden {
  display: none !important;
}

.loading {
  min-height: 220px;
  display: grid;
  place-items: center;
  color: var(--muted);
}

@media (max-width: 860px) {
  .auth-grid,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-grid > :last-child {
    order: -1;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 22px, 1160px);
  }

  .site-header {
    position: static;
  }

  .nav {
    min-height: 64px;
  }

  .brand span,
  .nav .button-quiet {
    display: none;
  }

  .page-main {
    padding-top: 34px;
  }

  .form-grid,
  .stats,
  .details-list {
    grid-template-columns: 1fr;
  }

  .job-card-top,
  .application-card-top {
    display: grid;
  }

  .copy-row {
    grid-template-columns: 1fr;
  }

  .button-row .button,
  .toolbar .button {
    flex: 1 1 150px;
  }
}
