:root {
  --ink: #111318;
  --muted: #6b7280;
  --line: #e7e8eb;
  --surface: #ffffff;
  --soft: #f6f7f9;
  --accent: #17191f;
  --success: #237a4b;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #f7f7f8;
}

a { color: inherit; }

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #f3f4f6;
}

.auth-shell {
  width: min(100%, 1040px);
  min-height: 650px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.07);
}

.brand-panel {
  padding: 72px;
  background: #111318;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-mark, .brand {
  font-weight: 800;
  letter-spacing: -.04em;
  font-size: 25px;
  text-decoration: none;
}
.brand-mark span, .brand span, .mobile-brand span { font-weight: 400; }

.eyebrow, .card-label {
  font-size: 11px;
  letter-spacing: .14em;
  font-weight: 750;
  text-transform: uppercase;
}

.brand-panel .eyebrow { margin-top: 72px; opacity: .6; }

.brand-panel h1 {
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.02;
  letter-spacing: -.045em;
  margin: 14px 0 20px;
}

.muted { color: var(--muted); line-height: 1.6; }
.brand-panel .muted { color: #b8bbc2; max-width: 470px; }

.login-card {
  padding: 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mobile-brand { display: none; }
.login-card h2 { font-size: 34px; letter-spacing: -.035em; margin: 0 0 8px; }

form { margin-top: 34px; }

label {
  display: block;
  font-size: 13px;
  font-weight: 650;
  margin-bottom: 8px;
}

.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 22px;
}
.label-row label { margin: 0; }
.label-row a { font-size: 12px; color: var(--muted); }

input {
  width: 100%;
  height: 50px;
  border: 1px solid #dfe1e5;
  border-radius: 10px;
  padding: 0 14px;
  font-size: 14px;
  outline: none;
  background: #fff;
}
input:focus { border-color: #8d929d; box-shadow: 0 0 0 3px rgba(17,19,24,.06); }

.primary-btn, .secondary-btn, .ghost-btn {
  border-radius: 9px;
  min-height: 46px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  border: 1px solid transparent;
}
.primary-btn {
  background: var(--accent);
  color: #fff;
}
.primary-btn:hover { opacity: .9; }
.secondary-btn {
  background: #fff;
  color: var(--ink);
  border-color: #dfe1e5;
}
.ghost-btn { background: transparent; border-color: #dedfe3; color: var(--ink); min-height: 38px; }
form .primary-btn { width: 100%; margin-top: 28px; }
.small { min-height: 40px; font-size: 13px; }
.form-message { min-height: 20px; font-size: 13px; color: #b42318; }
.login-note { margin-top: 48px; font-size: 12px; color: #9a9da5; }

.topbar {
  height: 72px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
}
.topbar nav { display: flex; align-items: center; gap: 16px; }
.nav-name { font-size: 13px; color: var(--muted); }

.dashboard {
  width: min(1120px, 90%);
  margin: 0 auto;
  padding: 68px 0 100px;
}

.welcome {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 42px;
}
.welcome h1 {
  margin: 10px 0;
  font-size: clamp(36px, 5vw, 54px);
  letter-spacing: -.045em;
}
.welcome .eyebrow, .verification-panel .eyebrow { color: #858993; margin: 0; }

.status-pill {
  padding: 9px 12px;
  background: #eef8f1;
  color: var(--success);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.status-pill span {
  width: 7px; height: 7px; display: inline-block; border-radius: 50%;
  background: #2f9e63; margin-right: 6px;
}

.document-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.document-card, .verification-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px;
}
.document-card.featured { box-shadow: 0 14px 35px rgba(0,0,0,.05); }
.card-icon {
  width: 54px; height: 54px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--soft);
  font-size: 10px; font-weight: 800; letter-spacing: .08em;
}
.document-card h2 { margin: 12px 0 8px; font-size: 23px; letter-spacing: -.025em; }
.card-label { color: #8b8e97; margin: 24px 0 0; }
.button-row { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 24px; }

.verification-panel {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
}
.verification-panel h2 { margin: 10px 0; font-size: 24px; letter-spacing: -.03em; }
.verification-box {
  min-width: 270px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 13px;
  display: grid;
  gap: 7px;
}
.verification-box span { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.verification-box strong { font-size: 15px; }
.verification-box a { font-size: 12px; font-weight: 700; margin-top: 8px; }

@media (max-width: 760px) {
  .auth-shell { grid-template-columns: 1fr; min-height: auto; }
  .brand-panel { display: none; }
  .login-card { padding: 42px 28px; }
  .mobile-brand { display: block; margin-bottom: 50px; font-size: 23px; font-weight: 800; letter-spacing: -.04em; }
  .document-grid, .verification-panel { grid-template-columns: 1fr; }
  .welcome { align-items: start; flex-direction: column; }
  .topbar { padding: 0 20px; }
  .nav-name { display: none; }
  .dashboard { width: calc(100% - 32px); padding-top: 42px; }
  .verification-box { min-width: 0; }
}
