:root {
  --page-bg: #080b14;
  --panel-bg: rgba(16, 22, 36, 0.86);
  --panel-bg-strong: rgba(20, 27, 43, 0.94);
  --border-color: rgba(150, 163, 202, 0.18);
  --border-color-strong: rgba(156, 170, 214, 0.32);
  --text-color: #eef2ff;
  --muted-text: #9aa7bd;
  --accent-blue: #5aa8ff;
  --accent-violet: #8b5cf6;
  --danger: #fb7185;
  --success: #34d399;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text-color);
  background:
    linear-gradient(135deg, #0b0d10 0%, #151922 52%, #0e1117 100%);
  font-family: "Segoe UI", Arial, sans-serif;
}

.auth-app {
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-shell {
  width: min(920px, 100%);
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 14px;
}

.sidebar-section,
.pane {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  background: var(--panel-bg);
  box-shadow: var(--shadow);
}

.sidebar-section::before,
.pane::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
}

.auth-info-panel {
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px;
}

.auth-form-panel {
  padding: 26px;
  background: var(--panel-bg-strong);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-blue);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-size: 2.2rem;
  line-height: 1.08;
}

h2 {
  margin-bottom: 20px;
  font-size: 1.65rem;
}

h3 {
  margin-bottom: 10px;
  color: var(--muted-text);
  font-size: 0.85rem;
  font-weight: 600;
}

.muted-text {
  margin-bottom: 0;
  color: var(--muted-text);
  line-height: 1.6;
}

.api-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted-text);
  font-size: 0.92rem;
}

.status-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--muted-text);
  box-shadow: 0 0 0 4px rgba(154, 167, 189, 0.12);
}

.status-dot.is-online {
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.14);
}

.status-dot.is-offline {
  background: var(--danger);
  box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.14);
}

.tab-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 24px;
}

.tab-button,
.primary-button {
  min-height: 42px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-color);
  background: rgba(255, 255, 255, 0.04);
  font: inherit;
  cursor: pointer;
}

.tab-button.is-active {
  border-color: rgba(90, 168, 255, 0.58);
  background: rgba(90, 168, 255, 0.16);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

label {
  color: var(--muted-text);
  font-size: 0.86rem;
  font-weight: 600;
}

.command-input {
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text-color);
  background: rgba(7, 10, 20, 0.74);
  font: inherit;
  outline: none;
}

.command-input:focus {
  border-color: var(--border-color-strong);
  box-shadow: 0 0 0 3px rgba(90, 168, 255, 0.16);
}

.status-message {
  min-height: 22px;
  margin: 2px 0 0;
  color: var(--muted-text);
  font-size: 0.92rem;
}

.status-message.is-error {
  color: var(--danger);
}

.status-message.is-success {
  color: var(--success);
}

.primary-button {
  margin-top: 4px;
  border-color: rgba(52, 211, 153, 0.46);
  background: rgba(52, 211, 153, 0.16);
  font-weight: 700;
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

@media (max-width: 980px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-info-panel {
    min-height: 240px;
  }
}
