:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --border: #e5eaf2;
  --border-strong: #d7deeb;
  --text: #18212f;
  --muted: #637187;
  --brand: #e40a14;
  --brand-2: #ff5058;
  --shadow: 0 18px 44px rgba(20, 31, 56, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(228, 10, 20, 0.06), transparent 18%),
    linear-gradient(180deg, #f8fafc 0%, #f3f6fb 100%);
  color: var(--text);
  font-family: "IBM Plex Sans", sans-serif;
}

button,
input {
  font: inherit;
}

.docs-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 24px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand-lockup__copy {
  display: grid;
  gap: 4px;
}

.brand-kicker {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.brand-lockup strong {
  font-size: 1rem;
  font-weight: 700;
}

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

.brand-pill {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-pill--v4 {
  min-width: 58px;
  background: linear-gradient(180deg, var(--brand-2), var(--brand));
  color: #fff;
  border-color: transparent;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.brand-pill--unibf {
  background: #0f1726;
  border-color: #0f1726;
}

.brand-pill--unibf img {
  height: 22px;
  width: auto;
  display: block;
}

.auth-layout {
  max-width: 1240px;
  margin: 0 auto;
  padding: 42px 24px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 24px;
  align-items: start;
}

.auth-card {
  border-radius: 24px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.auth-card--intro {
  padding: 36px;
  display: grid;
  gap: 18px;
  min-height: 320px;
  align-content: start;
}

.auth-card--form {
  padding: 28px;
}

.section-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.auth-card h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.auth-card p {
  margin: 0;
  max-width: 40rem;
  color: var(--muted);
  line-height: 1.65;
}

.collection-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 6px;
}

.collection-strip span {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.92rem;
}

form {
  display: grid;
  gap: 16px;
}

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

.field span {
  font-size: 0.94rem;
  font-weight: 600;
  color: #314055;
}

.field input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--text);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field input:focus {
  outline: none;
  border-color: rgba(228, 10, 20, 0.5);
  box-shadow: 0 0 0 4px rgba(228, 10, 20, 0.08);
}

.submit-btn {
  min-height: 50px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--brand-2), var(--brand));
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(228, 10, 20, 0.16);
  transition: transform 160ms ease, filter 160ms ease;
}

.submit-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
}

.submit-btn:disabled {
  cursor: wait;
  opacity: 0.74;
}

.form-error {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(228, 10, 20, 0.18);
  background: rgba(228, 10, 20, 0.06);
  color: #a61d24;
}

@media (max-width: 900px) {
  .topbar-inner,
  .auth-layout {
    padding-left: 16px;
    padding-right: 16px;
  }

  .auth-layout {
    grid-template-columns: 1fr;
    padding-top: 24px;
  }

  .brand-lockup {
    flex-direction: column;
    align-items: flex-start;
  }
}
