:root {
  --bg: #0c121c;
  --panel: #121b28;
  --panel-2: #0f1722;
  --line: #203149;
  --text: #e7eef7;
  --muted: #93a9c4;
  --accent: #36a3ff;
  --accent-2: #2a7edb;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: 'IBM Plex Mono', monospace;
  background: radial-gradient(circle at 15% 15%, #17263c 0%, #0c121c 45%);
  color: var(--text);
  min-height: 100%;
}

.shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}

.card {
  width: 100%;
  max-width: 420px;
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

.brand {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 8px;
}

.hint {
  color: var(--muted);
  margin: 0 0 20px;
  font-size: 14px;
}

label {
  display: block;
  margin-bottom: 7px;
  color: #bfd0e5;
  font-size: 14px;
}

input {
  width: 100%;
  border: 1px solid var(--line);
  background: #0b131f;
  color: var(--text);
  border-radius: 10px;
  padding: 11px 12px;
  margin-bottom: 14px;
}

button,
.btn {
  display: inline-block;
  border: 0;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #fff;
  font-weight: 700;
  padding: 11px 14px;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #0f1826;
  border-bottom: 1px solid var(--line);
}

.topbar .actions {
  display: flex;
  gap: 10px;
}

.btn-secondary {
  background: #1c2a3f;
  border: 1px solid #2d4060;
}

.frame-wrap {
  height: calc(100vh - 56px);
}

.frame-wrap.frame-full {
  height: 100vh;
}

.frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.login-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  pointer-events: none;
}

.login-overlay .card {
  pointer-events: auto;
}

.error {
  color: #ffb4b4;
  font-size: 13px;
  min-height: 16px;
}
