:root {
  color-scheme: dark;
  --bg-1: #06101d;
  --bg-2: #0d1c31;
  --panel: rgba(8, 18, 31, 0.83);
  --panel-strong: rgba(10, 22, 37, 0.94);
  --line: rgba(153, 174, 219, 0.18);
  --line-strong: rgba(246, 178, 107, 0.28);
  --text: #eff3fb;
  --muted: #aab7ce;
  --accent: #f6b26b;
  --accent-strong: #ff8a4c;
  --danger: #ff7b75;
  --danger-strong: #ff5449;
  --success: #74d7a7;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

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

body {
  position: relative;
  overflow-x: hidden;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 138, 76, 0.18), transparent 34%),
    radial-gradient(circle at bottom right, rgba(116, 215, 167, 0.12), transparent 28%),
    linear-gradient(160deg, var(--bg-1) 0%, var(--bg-2) 48%, #040b14 100%);
}

.background-glow {
  position: fixed;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.55;
}

.background-glow-left {
  top: -8rem;
  left: -8rem;
  background: rgba(255, 138, 76, 0.18);
}

.background-glow-right {
  right: -10rem;
  bottom: -10rem;
  background: rgba(116, 215, 167, 0.12);
}

.page-shell {
  position: relative;
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.hero-card,
.panel-card,
.status-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hero-card {
  position: relative;
  padding: 28px;
  overflow: hidden;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(246, 178, 107, 0.08), transparent 42%),
    linear-gradient(315deg, rgba(116, 215, 167, 0.05), transparent 34%);
  pointer-events: none;
}

.language-switch {
  position: relative;
  z-index: 1;
  display: inline-flex;
  gap: 10px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.lang-button {
  min-width: 52px;
  padding: 10px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.lang-button.is-active {
  color: #140d06;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
}

.eyebrow {
  position: relative;
  z-index: 1;
  margin: 22px 0 10px;
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-title {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 11ch;
  font-size: clamp(2.8rem, 5vw, 5rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
}

.hero-subtitle {
  position: relative;
  z-index: 1;
  margin: 16px 0 0;
  max-width: 720px;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.7;
}

.notice-grid,
.content-grid {
  display: grid;
  gap: 18px;
}

.notice-grid {
  position: relative;
  z-index: 1;
  margin-top: 28px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.content-grid {
  margin-top: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.notice-card,
.panel-card {
  padding: 22px;
}

.notice-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
}

.notice-card-warning {
  border-color: var(--line-strong);
  background: rgba(246, 178, 107, 0.08);
}

.notice-title,
.panel-header h2,
.warning-title {
  margin: 0;
  font-size: 1.16rem;
  letter-spacing: -0.02em;
}

.notice-body,
.panel-header p,
.warning-body,
.status-message,
.signed-out-state,
.confirm-hint {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.secondary-link {
  display: inline-flex;
  margin-top: 14px;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.panel-card {
  background: var(--panel-strong);
}

.panel-header p {
  max-width: 56ch;
}

.stack {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.94rem;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

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

.field span {
  font-size: 0.95rem;
  color: var(--muted);
}

.field input {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
}

.field input:focus {
  outline: 2px solid rgba(246, 178, 107, 0.44);
  outline-offset: 2px;
  border-color: rgba(246, 178, 107, 0.55);
}

button,
.secondary-link {
  transition: transform 160ms ease, opacity 160ms ease, border-color 160ms ease;
}

button {
  cursor: pointer;
}

button:hover,
.secondary-link:hover {
  transform: translateY(-1px);
}

button:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
}

.primary-button,
.secondary-button,
.danger-button,
.text-button {
  border: 0;
  border-radius: 18px;
  padding: 15px 18px;
  color: var(--text);
  font: inherit;
  font-weight: 700;
}

.primary-button {
  color: #140d06;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
}

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

.danger-button {
  background: linear-gradient(135deg, var(--danger) 0%, var(--danger-strong) 100%);
}

.text-button {
  padding: 0;
  background: transparent;
  color: var(--accent);
  text-align: left;
}

.warning-box {
  padding: 16px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: rgba(246, 178, 107, 0.08);
}

.user-summary {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.summary-label {
  color: var(--muted);
  font-size: 0.93rem;
}

.summary-value {
  word-break: break-word;
  font-size: 1rem;
}

.hidden {
  display: none;
}

.status-card {
  margin-top: 18px;
  padding: 18px 22px;
}

.status-message {
  min-height: 1.7em;
}

.status-message.is-error {
  color: #ffb0a8;
}

.status-message.is-success {
  color: var(--success);
}

@media (max-width: 860px) {
  .notice-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    max-width: none;
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: min(100%, calc(100% - 20px));
    padding: 20px 0 36px;
  }

  .hero-card,
  .panel-card,
  .status-card {
    border-radius: 22px;
  }

  .hero-card,
  .notice-card,
  .panel-card,
  .status-card {
    padding-left: 18px;
    padding-right: 18px;
  }
}
