:root {
  color-scheme: dark;
  --bg: #0b1020;
  --bg2: #11182d;
  --card: rgba(17, 24, 45, 0.88);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #eef2ff;
  --muted: #9aa6c3;
  --accent: #7aa2ff;
  --accent2: #9d7bff;
  --ok: #89b4a2;
  --warn: #e2c27b;
  --shadow:
    0 10px 40px rgba(0,0,0,0.30),
    inset 0 1px 0 rgba(255,255,255,0.04);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(122,162,255,0.14), transparent 32%),
    radial-gradient(circle at bottom right, rgba(157,123,255,0.12), transparent 28%),
    linear-gradient(160deg, var(--bg), var(--bg2));
  color: var(--text);
}

body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.shell {
  width: 100%;
  max-width: 560px;
}

.tab-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.brand-mark {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 0 28px rgba(122,162,255,0.35);
  flex: 0 0 auto;
}

.brand-text {
  min-width: 0;
}

.brand-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-subtitle {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.brand-badge {
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  color: var(--muted);
  background: rgba(255,255,255,0.03);
}

.tab-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 24px;
}

.tab-label {
  display: grid;
  place-items: center;
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.025);
  color: #c8d1ea;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}

.tab-label:hover {
  border-color: var(--line-strong);
  background: rgba(255,255,255,0.045);
}

.tab-label:active {
  transform: translateY(1px);
}

#tab-signin:checked ~ .card .tab-nav label[for="tab-signin"],
#tab-access:checked ~ .card .tab-nav label[for="tab-access"],
#tab-status:checked ~ .card .tab-nav label[for="tab-status"] {
  border-color: rgba(122,162,255,0.28);
  background: rgba(122,162,255,0.12);
  color: #eef2ff;
}

.panel {
  display: none;
}

#tab-signin:checked ~ .card .panel-signin,
#tab-access:checked ~ .card .panel-access,
#tab-status:checked ~ .card .panel-status {
  display: block;
}

h1 {
  margin: 0 0 10px;
  font-size: 30px;
  line-height: 1.15;
}

.lead {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 15px;
}

.form-shell {
  display: grid;
  gap: 14px;
}

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

.field-label {
  font-size: 12px;
  color: var(--muted);
}

.real-input {
  width: 100%;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 14px;
  color: var(--text);
  background: rgba(255,255,255,0.03);
  outline: none;
  transition: border-color .12s ease, background .12s ease, box-shadow .12s ease;
}

.real-input::placeholder {
  color: #7f8caf;
}

.real-input:hover {
  border-color: var(--line-strong);
}

.real-input:focus {
  border-color: rgba(122,162,255,0.42);
  background: rgba(255,255,255,0.05);
  box-shadow: 0 0 0 4px rgba(122,162,255,0.10);
}

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

.between {
  justify-content: space-between;
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #c8d1ea;
  font-size: 13px;
  cursor: pointer;
  user-select: none;
}

.check input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.text-link {
  color: #c8d1ea;
  font-size: 13px;
  text-decoration: none;
}

.text-link:hover {
  color: #eef2ff;
  text-decoration: underline;
}

.action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 2px;
}

.primary-button,
.secondary-button {
  min-height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  text-align: center;
  cursor: pointer;
  user-select: none;
  font-weight: 700;
  text-decoration: none;
  transition: transform .12s ease, opacity .12s ease, border-color .12s ease;
}

.primary-button:hover,
.secondary-button:hover {
  opacity: 0.96;
}

.primary-button:active,
.secondary-button:active {
  transform: translateY(1px);
}

.primary-button {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: white;
  border: 1px solid transparent;
}

.secondary-button {
  border: 1px solid var(--line);
  color: #d6def6;
  background: rgba(255,255,255,0.03);
}

.inline-note,
.notice-card {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,0.025);
}

.inline-note {
  padding: 14px 16px;
  font-size: 13px;
  color: var(--ok);
  line-height: 1.55;
}

.notice-card {
  padding: 16px;
}

.notice-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}

.notice-text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.details-card {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,0.025);
  overflow: hidden;
}

.details-card summary {
  list-style: none;
  cursor: pointer;
  padding: 16px;
  font-size: 14px;
  font-weight: 700;
  user-select: none;
}

.details-card summary::-webkit-details-marker {
  display: none;
}

.details-body {
  padding: 0 16px 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.card-grid {
  display: grid;
  gap: 12px;
}

.choice-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,0.025);
  padding: 16px;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .12s ease, background .12s ease, transform .12s ease;
}

.choice-card:hover {
  border-color: var(--line-strong);
  background: rgba(255,255,255,0.045);
}

.choice-card:active {
  transform: translateY(1px);
}

.choice-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}

.choice-text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}

.status-list {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,0.025);
  color: #dce5fb;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  flex: 0 0 auto;
}

.status-dot.ok {
  background: var(--ok);
  box-shadow: 0 0 18px rgba(137,180,162,0.5);
}

.status-dot.warn {
  background: var(--warn);
  box-shadow: 0 0 18px rgba(226,194,123,0.45);
}

@media (max-width: 560px) {
  .card {
    padding: 20px;
    border-radius: 20px;
  }

  .tab-nav,
  .action-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 26px;
  }

  .row.between {
    flex-direction: column;
    align-items: flex-start;
  }
}
