:root {
  --navy: #071b5b;
  --blue: #0d47c2;
  --orange: #ff7a18;
  --ink: #102247;
  --muted: #64748b;
  --line: #dce5f3;
  --page: #f3f7fd;
  --white: #ffffff;
  --success: #087a50;
  --danger: #b42318;
  --warning: #9a5b00;
}

* {
  box-sizing: border-box;
}

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

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

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at top right, #dceaff 0, transparent 34%),
    linear-gradient(135deg, #eef4ff, #f8fbff);
}

.auth-card {
  width: min(100%, 460px);
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 24px 70px rgba(7, 27, 91, 0.14);
}

.auth-card img {
  display: block;
  width: 210px;
  max-width: 70%;
  margin: 0 auto 22px;
}

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

h1 {
  margin-bottom: 8px;
  color: var(--navy);
  font-size: clamp(27px, 4vw, 38px);
}

h2 {
  margin-bottom: 18px;
  color: var(--navy);
  font-size: 22px;
}

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

label {
  display: block;
  margin: 14px 0 7px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid #c9d7ea;
  border-radius: 10px;
  color: var(--ink);
  background: var(--white);
  outline: none;
}

textarea {
  min-height: 150px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.55;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(13, 71, 194, 0.12);
}

small {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.45;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 17px;
  border: 0;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  font-weight: 800;
}

.auth-card .button {
  width: 100%;
  margin-top: 18px;
}

.button.primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), #1d73e8);
}

.button.secondary {
  color: var(--navy);
  border: 1px solid #c6d5eb;
  background: var(--white);
}

.notice {
  margin: 16px 0;
  padding: 13px 15px;
  border: 1px solid;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.5;
}

.notice.success {
  color: var(--success);
  border-color: #9de2c5;
  background: #ebfff6;
}

.notice.danger {
  color: var(--danger);
  border-color: #ffc7c3;
  background: #fff1f0;
}

.notice.warning {
  color: var(--warning);
  border-color: #ffd598;
  background: #fff8e8;
}

.topbar {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(18px, 4vw, 48px);
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), #0a2e82);
  box-shadow: 0 10px 30px rgba(7, 27, 91, 0.18);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand img {
  width: 160px;
  max-height: 52px;
  object-fit: contain;
  background: var(--white);
}

.brand strong,
.brand span {
  display: block;
}

.brand span {
  margin-top: 3px;
  color: #d7e5ff;
  font-size: 12px;
}

.manager-shell {
  width: min(1440px, calc(100% - 34px));
  margin: 28px auto 60px;
}

.hero-card,
.panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 12px 36px rgba(7, 27, 91, 0.07);
}

.hero-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: clamp(24px, 4vw, 42px);
  background:
    linear-gradient(125deg, #ffffff 0%, #f5f9ff 67%, #e6efff 100%);
}

.hero-card p {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.fingerprint {
  min-width: 280px;
  padding: 16px;
  border: 1px solid #c9d9f0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.85);
}

.fingerprint span,
.fingerprint code {
  display: block;
}

.fingerprint span {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.fingerprint code {
  overflow-wrap: anywhere;
  font-size: 11px;
}

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

.grid.two {
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.75fr);
}

.panel {
  margin-top: 18px;
  padding: 24px;
}

.grid .panel {
  margin-top: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
}

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

.form-grid .button {
  margin-top: 14px;
}

.help-panel ol {
  margin: 0 0 24px;
  padding-left: 22px;
}

.help-panel li {
  margin-bottom: 12px;
  line-height: 1.55;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.section-head h2,
.section-head p {
  margin-bottom: 0;
}

.section-head p {
  margin-top: 4px;
  color: var(--muted);
}

.generated textarea {
  min-height: 190px;
}

.table-wrap {
  overflow-x: auto;
}

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

th,
td {
  padding: 13px 12px;
  border-bottom: 1px solid #e6edf7;
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}

th {
  color: var(--navy);
  background: #f7faff;
  white-space: nowrap;
}

td span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.status {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  font-weight: 800;
}

.status.active {
  color: var(--success);
  background: #e8fff4;
}

.status.suspended {
  color: var(--danger);
  background: #fff0ef;
}

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

  .form-grid .full {
    grid-column: auto;
  }

  .hero-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .fingerprint {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 620px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand img {
    width: 125px;
  }

  .manager-shell {
    width: min(100% - 20px, 1440px);
    margin-top: 14px;
  }

  .panel {
    padding: 18px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }
}
