:root {
  --ink: #0a1f44;
  --deep: #04101f;
  --blue: #007bff;
  --green: #00a86b;
  --red: #ff3b3b;
  --bg: #f5f7fa;
  --muted: #6c7b91;
  --line: rgba(10, 31, 68, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

.portal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(18px, 4vw, 46px);
  color: #fff;
  background: var(--deep);
}

.brand {
  display: grid;
  gap: 2px;
}

.brand span {
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
}

.brand strong {
  color: var(--blue);
}

.brand small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.portal-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

.portal-main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 60px;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.75fr);
  gap: 26px;
  align-items: center;
  min-height: calc(100vh - 150px);
}

.hero-box,
.card,
.table-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(10, 31, 68, 0.08);
}

.hero-box {
  padding: clamp(28px, 5vw, 54px);
  color: #fff;
  background:
    radial-gradient(circle at 18% 20%, rgba(0, 123, 255, 0.32), transparent 34%),
    linear-gradient(135deg, #04101f, #0a1f44);
}

.hero-box h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.02;
}

.hero-box p {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

.card {
  padding: 24px;
}

.card h2,
.card h3 {
  margin-top: 0;
}

.form-grid {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

textarea {
  resize: vertical;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--blue);
  border-radius: 7px;
  color: #fff;
  background: var(--blue);
  font-weight: 800;
  cursor: pointer;
}

.button.secondary {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}

.button.danger {
  border-color: var(--red);
  background: var(--red);
}

.flash {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 8px;
  color: #075437;
  background: rgba(0, 168, 107, 0.12);
  font-weight: 800;
}

.dashboard-grid,
.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1fr);
  gap: 18px;
  align-items: start;
}

.status-pill {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  color: #075437;
  background: rgba(0, 168, 107, 0.12);
  font-size: 12px;
  font-weight: 900;
}

.steps {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  color: var(--muted);
  font-weight: 700;
}

.steps li::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-top: 7px;
  border-radius: 50%;
  border: 2px solid rgba(10, 31, 68, 0.18);
}

.steps li.done {
  color: var(--ink);
}

.steps li.done::before {
  border-color: var(--green);
  background: var(--green);
}

.documents {
  display: grid;
  gap: 12px;
}

.document-item {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.document-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.document-head strong {
  font-size: 18px;
}

.document-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.table-card {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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