:root {
  --bg: #05050d;
  --bg-top: #11100f;
  --bg-mid: #0b0b09;
  --bg-low: #080806;
  --panel: rgba(15, 15, 14, 0.86);
  --panel-strong: rgba(11, 11, 9, 0.92);
  --line: rgba(195, 191, 174, 0.2);
  --line-strong: rgba(195, 191, 174, 0.35);
  --text-main: #e7e3d4;
  --text-dim: rgba(207, 201, 183, 0.72);
  --accent: #ffd700;
  --accent-hover: #ffe44d;
  --danger: #ef4444;
  --success: #51cf66;
  --warning: #ffd43b;
  --shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.07), transparent 26%),
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.05), transparent 18%),
    linear-gradient(135deg, var(--bg-top) 0%, var(--bg-mid) 34%, var(--bg-low) 100%);
  color: var(--text-main);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  padding: 24px;
}

body.user-shell {
  background:
    radial-gradient(circle at top left, rgba(120, 144, 90, 0.12), transparent 32%),
    radial-gradient(circle at 82% 18%, rgba(160, 176, 134, 0.08), transparent 24%),
    linear-gradient(135deg, #121610 0%, #0b0f0a 38%, #080b08 100%);
}

body.ops-shell {
  background:
    radial-gradient(circle at top left, rgba(115, 166, 255, 0.14), transparent 32%),
    radial-gradient(circle at 82% 18%, rgba(102, 133, 255, 0.08), transparent 24%),
    linear-gradient(135deg, #10141c 0%, #090c12 38%, #06080d 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.noise {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.016) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.016) 1px, transparent 1px);
  background-size: 72px 72px;
  mix-blend-mode: screen;
  opacity: 0.24;
  pointer-events: none;
}

.container {
  position: relative;
  z-index: 1;
  max-width: 1160px;
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 50;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(8, 8, 8, 0.96);
  color: var(--text-main);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 16px;
}

main:focus {
  outline: none;
}

.flash-stack {
  display: grid;
  gap: 10px;
}

h1,
h2,
h3 {
  font-family: "Orbitron", "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: -0.06em;
  text-transform: uppercase;
  color: var(--text-main);
  margin: 0;
}

h1,
h2 {
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

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

.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.84), rgba(12, 12, 12, 0.94));
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

body.user-shell .nav-bar {
  border-color: rgba(177, 199, 141, 0.25);
  background: linear-gradient(180deg, rgba(18, 25, 17, 0.9), rgba(11, 15, 10, 0.96));
}

body.ops-shell .nav-bar {
  border-color: rgba(121, 166, 255, 0.25);
  background: linear-gradient(180deg, rgba(16, 20, 30, 0.92), rgba(9, 12, 18, 0.97));
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.nav-links a {
  color: var(--text-dim);
  border: 1px solid transparent;
  padding: 7px 10px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--text-main);
  border-color: var(--line);
  background: rgba(255, 215, 0, 0.06);
}

body.user-shell .nav-links a:hover {
  border-color: rgba(177, 199, 141, 0.35);
  background: rgba(177, 199, 141, 0.08);
}

body.user-shell .nav-links a::after {
  background-color: rgba(177, 199, 141, 0.9);
}

body.ops-shell .nav-links a:hover {
  border-color: rgba(121, 166, 255, 0.36);
  background: rgba(121, 166, 255, 0.09);
}

body.ops-shell .nav-links a::after {
  background-color: rgba(121, 166, 255, 0.9);
}

.nav-divider {
  color: var(--text-dim);
  padding: 7px 2px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.user-flow-hints {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: -8px 0 18px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.route-chip {
  color: var(--text-dim);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body.user-shell .route-chip {
  color: rgba(190, 205, 167, 0.9);
}

body.ops-shell .route-chip {
  color: rgba(176, 200, 255, 0.94);
}

.user-flow-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.user-flow-links a {
  color: var(--text-dim);
  border: 1px solid transparent;
  padding: 6px 9px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.user-flow-links a:hover {
  color: var(--text-main);
  border-color: var(--line);
  background: rgba(255, 215, 0, 0.06);
}

body.user-shell .user-flow-links a:hover {
  border-color: rgba(177, 199, 141, 0.35);
  background: rgba(177, 199, 141, 0.08);
}

body.ops-shell .user-flow-links a:hover {
  border-color: rgba(121, 166, 255, 0.36);
  background: rgba(121, 166, 255, 0.09);
}

body.ops-shell .user-flow-hints {
  border-color: rgba(121, 166, 255, 0.22);
  background: rgba(255, 255, 255, 0.015);
}

.mission-wagers-page {
  border-color: rgba(177, 199, 141, 0.22);
}

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

.wagers-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mission-create-page {
  border-color: rgba(177, 199, 141, 0.22);
}

.mission-create-help {
  margin-top: 8px;
}

.w-full {
  display: block;
  width: 100%;
  max-width: 100%;
  border-radius: 10px;
}

.mission-dialog {
  width: min(760px, 92vw);
  border: 1px solid rgba(177, 199, 141, 0.32);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(19, 24, 17, 0.96), rgba(9, 12, 9, 0.98));
  color: var(--text-main);
  padding: 0;
}

.mission-dialog::backdrop {
  background: rgba(4, 8, 4, 0.74);
  backdrop-filter: blur(2px);
}

.mission-dialog-inner {
  padding: 16px;
}

.mission-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.mission-dialog-footnote {
  margin-top: 8px;
}

.wager-state-grid {
  display: grid;
  gap: 14px;
}

.state-panel {
  border: 1px solid rgba(177, 199, 141, 0.2);
  border-radius: 12px;
  padding: 12px;
  background: rgba(13, 18, 12, 0.4);
}

.state-title {
  border: none;
  padding: 0;
  margin-bottom: 4px;
}

.state-subtitle {
  margin-top: 0;
  margin-bottom: 8px;
  color: var(--text-dim);
}

.mission-sequence {
  margin: 14px 0 12px;
  padding: 12px;
  border: 1px solid rgba(177, 199, 141, 0.24);
  border-radius: 12px;
  background: rgba(12, 17, 11, 0.44);
}

.mission-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.mission-step {
  border: 1px solid rgba(177, 199, 141, 0.2);
  border-radius: 10px;
  padding: 10px;
  background: rgba(8, 12, 8, 0.5);
}

.mission-step-text {
  margin: 8px 0 0;
  color: var(--text-dim);
  font-size: 0.92rem;
}

.action-console-grid {
  margin-top: 8px;
}

.action-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.inline-confirm {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 6px 0 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.is-pending {
  opacity: 0.82;
}

.wallet-grid-top {
  margin-bottom: 14px;
}

.profile-action-banner {
  margin-top: 10px;
}

.profile-submit-panel {
  margin-top: 14px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 25px;
}

.card {
  background: linear-gradient(180deg, #11100f, #080806);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.form-card {
  max-width: 460px;
  margin: 40px auto;
}

.form-card-wide {
  max-width: 760px;
}

.auth-stage {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(320px, 1.1fr);
  gap: 18px;
  margin-bottom: 24px;
}

.auth-art {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 420px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.74));
  background-size: 50% 50%, 50% 50%, auto;
  box-shadow: var(--shadow);
}

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

.brand-mark {
  font-family: "Orbitron", "Space Grotesk", sans-serif;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  margin-bottom: 8px;
}

.auth-copy h2 {
  margin: 8px 0 12px;
}

.muted-copy {
  color: var(--text-dim);
}

.field-required,
.field-optional {
  display: inline-block;
  margin-left: 6px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field-required {
  color: #ffdca5;
}

.field-optional {
  color: var(--text-dim);
}

.preflight-status {
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
}

.preflight-status.is-pending {
  border-color: rgba(245, 158, 11, 0.42);
  background: rgba(245, 158, 11, 0.09);
}

.preflight-status.is-success {
  border-color: rgba(16, 185, 129, 0.42);
  background: rgba(16, 185, 129, 0.09);
}

.preflight-status.is-error {
  border-color: rgba(239, 68, 68, 0.42);
  background: rgba(239, 68, 68, 0.09);
}

.muted-small {
  color: var(--text-dim);
  font-size: 0.9em;
}

.helper-row {
  margin-top: 10px;
  text-align: center;
}

.helper-row a,
.action-link {
  color: var(--accent);
}

.helper-row a:hover,
.action-link:hover {
  color: var(--accent-hover);
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.info-note {
  color: var(--text-dim);
  margin-top: -8px;
}

.info-note-tight {
  color: var(--text-dim);
  margin-top: 0;
}

.stack-gap {
  margin-top: 16px;
}

.panel-gap {
  margin-bottom: 16px;
}

/* Phase 5: minimal component convention layer (additive aliases). */
.ui-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, #11100f, #080806);
}

.ui-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  margin: 0;
}

.ui-btn--compact {
  padding: 4px 10px;
}

.ui-btn--inline {
  padding: 6px 12px;
}

.ui-stack-gap {
  margin-top: 16px;
}

.ui-muted {
  color: var(--text-dim);
}

.card-compact {
  margin: 8px 0 12px;
  padding: 12px;
}

.meta-block {
  margin-bottom: 6px;
  color: var(--text-dim);
  font-size: 0.9em;
}

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

.filter-form {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  max-width: 500px;
}

.grow-1 {
  flex: 1;
}

.table-empty {
  color: var(--text-dim);
}

.inline-form {
  margin: 0;
}

.form-tight {
  margin: 0 0 6px;
}

.form-zero {
  margin: 0;
}

.inline-form-spaced {
  display: inline;
  margin: 0 0 0 10px;
}

.btn-inline {
  width: auto;
  padding: 6px 12px;
  margin: 0;
}

.btn-inline-compact {
  width: auto;
  padding: 4px 10px;
  margin: 0;
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.checkbox-inline {
  width: auto;
  margin: 0;
}

.checkbox-inline-gap {
  width: auto;
  margin-right: 6px;
}

.form-inline-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.input-tight {
  margin: 0 0 6px;
}

.label-muted {
  font-size: 0.9em;
  color: var(--text-dim);
}

.label-muted-block {
  display: block;
  font-size: 0.9em;
  color: var(--text-dim);
}

.meta-row {
  margin-bottom: 8px;
}

.chat-log-tall {
  max-height: 260px;
  margin-bottom: 0;
}

.pre-wrap {
  white-space: pre-wrap;
  margin: 0;
}

.no-top-margin {
  margin-top: 0;
}

.no-border-title {
  border: none;
  margin: 0;
}

.section-rule {
  border-color: var(--line);
  margin: 20px 0;
}

.section-title {
  margin-top: 20px;
}

.alert-top-gap {
  margin-top: 16px;
}

.chat-log {
  max-height: 240px;
  overflow-y: auto;
  margin-bottom: 10px;
  background: rgba(18, 17, 32, 0.9);
}

.chat-line {
  margin: 0 0 8px;
}

.chat-line-system {
  padding: 8px 10px;
  border: 1px solid rgba(177, 199, 141, 0.3);
  border-radius: 8px;
  background: rgba(177, 199, 141, 0.08);
}

.chat-ts {
  color: var(--text-dim);
  font-size: 0.85em;
}

.chat-thread-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.notification-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.notification-filter-row .btn-inline-compact.is-active {
  border: 1px solid rgba(177, 199, 141, 0.4);
  background: rgba(177, 199, 141, 0.16);
}

.notification-action-pair,
.notification-action-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 6px;
}

.badge-recording {
  background: var(--success);
  color: #000;
}

.badge-completed {
  background: #3b82f6;
  color: #fff;
}

.badge-failed {
  background: var(--danger);
  color: #fff;
}

.badge-interrupted {
  background: var(--warning);
  color: #000;
}

.stop-btn {
  background: var(--danger);
  color: #fff;
  width: auto;
  padding: 6px 12px;
  margin: 0;
}

input,
select,
button,
textarea {
  width: 100%;
  padding: 10px;
  margin-top: 8px;
  margin-bottom: 12px;
  border-radius: 2px;
  border: 1px solid var(--line);
  background: rgba(15, 15, 14, 0.8);
  color: var(--text-main);
  box-sizing: border-box;
  font: inherit;
}

input:focus,
select:focus,
button:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

button {
  background: #0b0b09;
  border: 1px solid var(--line);
  color: var(--text-main);
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
  transition: all 0.3s ease;
}

button:hover {
  background: rgba(255, 215, 0, 0.1);
  border-color: rgba(255, 215, 0, 0.6);
  color: var(--accent);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

button:disabled,
button[aria-disabled="true"] {
  opacity: 0.62;
  cursor: not-allowed;
  filter: none;
}

.alert {
  padding: 10px;
  background: rgba(15, 15, 14, 0.8);
  color: var(--text-main);
  border: 1px solid var(--line);
  border-radius: 2px;
  margin-bottom: 15px;
}

.alert-error {
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.3);
  color: #ff9999;
}

.alert-success {
  background: rgba(81, 207, 102, 0.1);
  border: 1px solid rgba(81, 207, 102, 0.3);
  color: #81dd91;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

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

th {
  color: var(--text-main);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.badge {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid var(--line);
}

.badge-success {
  background: rgba(16, 185, 129, 0.22);
  color: #9bf5d0;
}

.badge-warning {
  background: rgba(245, 158, 11, 0.2);
  color: #ffdca5;
}

.badge-danger {
  background: rgba(239, 68, 68, 0.2);
  color: #ffb4b4;
}

.utility-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid var(--line);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.02);
}

.shell-login {
  display: grid;
  place-items: center;
}

.login-stage {
  width: min(1240px, 100%);
  min-height: 720px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  overflow: hidden;
  border-radius: 34px;
}

.login-art {
  position: relative;
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.82));
  background-size: 50% 50%, 50% 50%, auto;
  background-position: center;
}

.login-art::before,
.login-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  pointer-events: none;
}

.login-art::before {
  background-image:
    linear-gradient(45deg, transparent 49.8%, rgba(255, 255, 255, 0.08) 50%, transparent 50.2%),
    linear-gradient(-45deg, transparent 49.8%, rgba(255, 255, 255, 0.08) 50%, transparent 50.2%);
  opacity: 0.65;
}

.login-art::after {
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.06), transparent 24%);
}

.center-emblem {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 132px;
  height: 132px;
  object-fit: contain;
  opacity: 0.92;
  filter: grayscale(1) brightness(3.2) contrast(1.15);
  transform: translate(-50%, -50%);
}

.login-panel {
  padding: 44px clamp(28px, 4vw, 58px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 36px;
  background: linear-gradient(180deg, #11100f, #0b0b09);
}

.login-topline {
  display: flex;
  justify-content: flex-end;
}

.login-copy {
  max-width: 420px;
}

.login-copy h1 {
  font-size: clamp(3.1rem, 8vw, 5rem);
  margin: 10px 0 18px;
}

.login-copy p:last-child {
  color: var(--text-dim);
  line-height: 1.7;
}

.login-form {
  display: grid;
  gap: 28px;
}

.login-form label {
  display: grid;
  gap: 10px;
}

.login-form input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  background: transparent;
  color: var(--text-main);
  padding: 0 0 12px;
  font: inherit;
  outline: none;
  margin: 0;
  border-radius: 0;
}

.login-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

.form-row,
.login-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.checkbox-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-dim);
}

.checkbox-row input {
  width: 14px;
  height: 14px;
  accent-color: #ffffff;
  margin: 0;
  padding: 0;
}

.form-row a,
.ghost-link {
  color: var(--text-dim);
}

.orb-button {
  width: 92px;
  height: 92px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #0b0b09;
  color: var(--text-main);
  font-family: "Orbitron", "Space Grotesk", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  cursor: pointer;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.5);
  margin: 0;
  transition: all 0.3s ease;
}

.orb-button:hover {
  background: rgba(255, 215, 0, 0.1);
  border-color: rgba(255, 215, 0, 0.6);
  color: var(--accent);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.legal {
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.75rem;
}

@media (max-width: 900px) {
  body {
    padding: 14px;
  }

  .auth-stage {
    grid-template-columns: 1fr;
  }

  .auth-art {
    min-height: auto;
  }

  .login-stage {
    grid-template-columns: 1fr;
  }

  .nav-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .login-stage {
    border-radius: 18px;
  }

  .login-panel,
  .login-art {
    padding: 24px;
  }

  .center-emblem {
    width: 92px;
    height: 92px;
  }

  .form-row,
  .login-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}
