/* Rayzor Data Room — reuses the main site's design tokens (industrial-tech minimalism:
   no gradients, no shadows, no rounded corners). */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --rz-powder-blue: #B6C3D2;
  --rz-charcoal:    #25282C;
  --rz-off-white:   #F9FAFB;
  --rz-ink:         #373C42;
  --rz-muted:       #5D656E;
  --rz-rule:        rgba(55,60,66,0.15);
  --rz-logo-red:    #E63A2E;

  --rz-font-display: "Inter", system-ui, -apple-system, sans-serif;
  --rz-font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; border-radius: 0 !important; box-shadow: none !important; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--rz-powder-blue);
  color: var(--rz-charcoal);
  font-family: var(--rz-font-mono);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.rz-login-wrap {
  width: 100%;
  max-width: 420px;
}

.rz-wordmark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
}
.rz-header-wordmark { margin-bottom: 0; justify-content: flex-start; }
.rz-logo-icon { height: 18px; width: auto; display: block; }
.rz-logo-text { height: 13px; width: auto; display: block; }

.rz-panel {
  background: var(--rz-off-white);
  border: 1px solid var(--rz-rule);
  padding: 40px;
}

.rz-panel h1 {
  font-family: var(--rz-font-display);
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--rz-ink);
}

.rz-panel p.rz-sub {
  font-size: 13px;
  color: var(--rz-muted);
  margin: 0 0 28px;
  line-height: 1.5;
}

label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--rz-ink);
  margin-bottom: 6px;
}

.rz-field { margin-bottom: 18px; }

.rz-field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.rz-field-label-row label { margin-bottom: 6px; }
.rz-show-toggle {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--rz-font-mono);
  font-size: 11px;
  color: var(--rz-muted);
  text-decoration: underline;
  cursor: pointer;
}
.rz-show-toggle:hover { color: var(--rz-ink); }

input[type="email"],
input[type="text"],
input[type="password"] {
  width: 100%;
  font-family: var(--rz-font-mono);
  font-size: 14px;
  padding: 12px 14px;
  border: 1px solid var(--rz-rule);
  background: #fff;
  color: var(--rz-ink);
}
input:focus { outline: 2px solid var(--rz-charcoal); outline-offset: 0; }

.rz-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

button.rz-submit {
  width: 100%;
  padding: 14px;
  background: var(--rz-charcoal);
  color: var(--rz-off-white);
  border: none;
  font-family: var(--rz-font-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  margin-top: 6px;
}
button.rz-submit:hover { background: #1a1c1f; }
button.rz-submit:disabled { opacity: 0.5; cursor: not-allowed; }

button.rz-link-btn {
  background: none;
  border: none;
  color: var(--rz-muted);
  font-family: var(--rz-font-mono);
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  margin-top: 14px;
}

.rz-error {
  font-size: 12px;
  color: #B3261E;
  margin-top: -6px;
  margin-bottom: 14px;
  display: none;
}
.rz-error.show { display: block; }

.rz-confidentiality {
  font-size: 11px;
  color: var(--rz-muted);
  line-height: 1.5;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--rz-rule);
}

.rz-step { display: none; }
.rz-step.active { display: block; }

.rz-otp-input {
  letter-spacing: 8px;
  font-size: 20px;
  text-align: center;
}

/* ---- App shell (hub + section pages) ---- */
body.rz-app-body {
  display: block;
  background: var(--rz-off-white);
  padding: 0;
}

.rz-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  border-bottom: 1px solid var(--rz-rule);
  background: var(--rz-off-white);
}
.rz-header-wordmark { margin-bottom: 0; }
.rz-header-right { display: flex; align-items: center; gap: 20px; }
.rz-muted-text { color: var(--rz-muted); font-size: 13px; }

.rz-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 40px 80px;
}

.rz-hub-title {
  font-family: var(--rz-font-display);
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--rz-ink);
}
.rz-hub-sub {
  color: var(--rz-muted);
  font-size: 14px;
  line-height: 1.6;
  max-width: 640px;
  margin: 0 0 40px;
}

.rz-metrics {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--rz-rule);
  margin-bottom: 48px;
}
.rz-metric {
  padding: 20px;
  border-right: 1px solid var(--rz-rule);
  position: relative;
  cursor: default;
}
.rz-metric:last-child { border-right: none; }
.rz-metric::after {
  content: '';
  position: absolute;
  left: 20px; right: 20px; bottom: -1px; height: 2px;
  background: var(--rz-logo-red);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 380ms cubic-bezier(.22,1,.36,1);
}
.rz-metric:hover::after { transform: scaleX(1); }
.rz-metric-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--rz-muted);
  margin-bottom: 8px;
}
.rz-metric-value {
  font-size: 13px;
  color: var(--rz-ink);
  font-weight: 500;
  display: inline-block;
  transform: translateY(0);
  transition: transform 320ms cubic-bezier(.22,1,.36,1);
}
.rz-metric:hover .rz-metric-value { transform: translateY(-2px); }

.rz-sections-heading {
  font-family: var(--rz-font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--rz-ink);
  margin: 0 0 20px;
}

.rz-progress-track {
  height: 6px;
  background: var(--rz-rule);
  margin-bottom: 14px;
}
.rz-progress-fill {
  height: 100%;
  background: var(--rz-charcoal);
  transition: width 600ms cubic-bezier(.22,1,.36,1);
}
.rz-progress-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 48px;
}
.rz-progress-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--rz-muted);
}
.rz-progress-complete { color: var(--rz-ink); }
.rz-progress-current { color: var(--rz-logo-red); font-weight: 500; }

.rz-section-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 2px solid var(--rz-rule);
  border-left: 2px solid var(--rz-rule);
}
.rz-section-card {
  background: var(--rz-off-white);
  padding: 24px;
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
  border-right: 2px solid var(--rz-rule);
  border-bottom: 2px solid var(--rz-rule);
  transition: background 150ms ease, transform 380ms cubic-bezier(.22,1,.36,1);
}
.rz-section-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; height: 2px; width: 0%;
  background: var(--rz-logo-red);
  transition: width 420ms cubic-bezier(.22,1,.36,1);
}
.rz-section-card:hover {
  background: #F0F1F2;
  transform: translateY(-4px);
}
.rz-section-card:hover::before { width: 100%; }
.rz-section-number {
  font-size: 12px;
  color: var(--rz-logo-red);
  font-weight: 500;
  margin-bottom: 6px;
}
.rz-section-title {
  font-family: var(--rz-font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--rz-ink);
  margin-bottom: 8px;
}
.rz-section-desc {
  font-size: 13px;
  color: var(--rz-muted);
  line-height: 1.5;
  margin-bottom: 14px;
}
.rz-section-meta {
  font-size: 11px;
  color: var(--rz-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.rz-back-link {
  display: inline-block;
  font-size: 13px;
  color: var(--rz-muted);
  text-decoration: none;
  margin-bottom: 32px;
}
.rz-back-link:hover { color: var(--rz-ink); }

.rz-doc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 2px solid var(--rz-rule);
  border-left: 2px solid var(--rz-rule);
  margin-top: 32px;
}
.rz-doc-subheading {
  grid-column: 1 / -1;
  font-family: var(--rz-font-display);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--rz-muted);
  padding: 14px 24px;
  background: #F0F1F2;
  border-right: 2px solid var(--rz-rule);
  border-bottom: 2px solid var(--rz-rule);
}
.rz-doc-card {
  background: var(--rz-off-white);
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  border-right: 2px solid var(--rz-rule);
  border-bottom: 2px solid var(--rz-rule);
  transition: background 150ms ease, transform 380ms cubic-bezier(.22,1,.36,1);
}
.rz-doc-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; height: 2px; width: 0%;
  background: var(--rz-logo-red);
  transition: width 420ms cubic-bezier(.22,1,.36,1);
}
.rz-doc-card:hover {
  background: #F0F1F2;
  transform: translateY(-4px);
}
.rz-doc-card:hover::before { width: 100%; }
.rz-doc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.rz-doc-code {
  font-size: 11px;
  color: var(--rz-logo-red);
  font-weight: 500;
}
.rz-pill {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 8px;
  border: 1px solid var(--rz-rule);
}
.rz-pill-available { color: #1B7A43; border-color: #1B7A43; }
.rz-pill-pending { color: #A66A00; border-color: #A66A00; }
.rz-pill-denied { color: #B3261E; border-color: #B3261E; }
.rz-pill-request { color: var(--rz-muted); }

.rz-doc-title {
  font-family: var(--rz-font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--rz-ink);
  margin-bottom: 6px;
}
.rz-doc-desc {
  font-size: 13px;
  color: var(--rz-muted);
  line-height: 1.5;
  margin-bottom: 12px;
  flex-grow: 1;
}
.rz-doc-meta {
  font-size: 11px;
  color: var(--rz-muted);
  margin-bottom: 16px;
}

.rz-doc-action {
  display: flex;
  gap: 8px;
}
.rz-doc-action .rz-doc-btn { flex: 1; }

.rz-doc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  font-family: var(--rz-font-mono);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  text-align: center;
  border: 1px solid var(--rz-rule);
  background: transparent;
  color: var(--rz-muted);
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}
.rz-doc-btn:disabled { cursor: not-allowed; opacity: 0.7; }
.rz-doc-btn-primary {
  background: var(--rz-charcoal);
  border-color: var(--rz-charcoal);
  color: var(--rz-off-white);
}
.rz-doc-btn-primary:hover { background: #1a1c1f; }

.rz-doc-btn-view { color: var(--rz-ink); }
.rz-doc-btn-view:hover {
  border-color: var(--rz-logo-red);
  color: var(--rz-logo-red);
}
.rz-doc-btn-view-icon {
  transition: transform 220ms cubic-bezier(.22,1,.36,1);
}
.rz-doc-btn-view:hover .rz-doc-btn-view-icon {
  transform: translate(2px, -2px) scale(1.08);
}

.rz-admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.rz-admin-table th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--rz-muted);
  padding: 10px 12px;
  border-bottom: 1px solid var(--rz-rule);
}
.rz-admin-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--rz-rule);
  color: var(--rz-ink);
  vertical-align: middle;
}
.rz-admin-table select {
  font-family: var(--rz-font-mono);
  font-size: 12px;
  padding: 6px 8px;
  border: 1px solid var(--rz-rule);
  background: #fff;
  color: var(--rz-ink);
}

@media (max-width: 640px) {
  .rz-metrics { grid-template-columns: 1fr 1fr; }
  .rz-metric:nth-child(2n) { border-right: none; }
  .rz-section-grid { grid-template-columns: 1fr; }
  .rz-doc-grid { grid-template-columns: 1fr; }
  .rz-header { padding: 16px 20px; }
  .rz-main { padding: 32px 20px 60px; }
  .rz-admin-table { font-size: 11px; }
}
