:root {
  --bg: #07131f;
  --bg-deep: #030b12;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-strong: rgba(255, 255, 255, 0.98);
  --line: rgba(16, 32, 42, 0.12);
  --line-strong: rgba(16, 32, 42, 0.2);
  --text: #10202a;
  --text-soft: rgba(16, 32, 42, 0.72);
  --text-inverse: #edf5ff;
  --brand: #1f8dff;
  --brand-strong: #0d6bd2;
  --success: #198754;
  --danger: #d64545;
  --shadow-soft: 0 24px 70px rgba(4, 18, 30, 0.14);
  --radius-lg: 30px;
  --radius-md: 18px;
  --font-body: "Manrope", sans-serif;
  --font-display: "Oxanium", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(31, 141, 255, 0.16), transparent 22%),
    radial-gradient(circle at 85% 10%, rgba(120, 255, 51, 0.12), transparent 18%),
    linear-gradient(180deg, #f5f7f2 0%, #eef2ed 50%, #e8eeea 100%);
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

.access-page {
  padding: 32px 20px 72px;
}

.access-shell {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.access-intro {
  padding: 28px 0 18px;
}

.back-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
}

.back-link:hover,
.secondary-link:hover,
.back-link:focus-visible,
.secondary-link:focus-visible {
  color: var(--brand-strong);
}

.eyebrow,
.panel-kicker {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-strong);
}

.access-intro h1,
.panel h2,
.editor-section legend {
  margin: 0;
  font-family: var(--font-display);
  line-height: 1;
}

.access-intro h1 {
  max-width: 12ch;
  font-size: clamp(2.3rem, 7vw, 4.9rem);
}

.intro-text,
.panel-text,
.section-description {
  color: var(--text-soft);
  line-height: 1.7;
}

.intro-text {
  max-width: 62ch;
  margin: 18px 0 0;
}

.notice,
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.notice {
  margin: 0 0 20px;
  padding: 16px 20px;
}

.notice-success {
  border-color: rgba(25, 135, 84, 0.24);
  background: rgba(25, 135, 84, 0.08);
  color: #0f5e39;
}

.notice-error {
  border-color: rgba(214, 69, 69, 0.24);
  background: rgba(214, 69, 69, 0.08);
  color: #8b2525;
}

.panel {
  padding: 28px 22px;
}

.auth-panel {
  max-width: 560px;
}

.panel-header {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.panel-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(16, 32, 42, 0.08);
  color: var(--text-soft);
  font-size: 0.92rem;
  font-weight: 700;
}

.stack {
  display: grid;
  gap: 16px;
}

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

.field span {
  font-size: 0.95rem;
  font-weight: 700;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 14px 16px;
  background: #fff;
  color: var(--text);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.primary-button:focus-visible,
.secondary-link:focus-visible,
.back-link:focus-visible {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(31, 141, 255, 0.16);
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-strong) 100%);
  color: var(--text-inverse);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 16px 36px rgba(13, 107, 210, 0.25);
}

.primary-button:hover {
  transform: translateY(-1px);
}

.content-panel {
  padding: 28px 22px 24px;
}

.editor-form {
  display: grid;
  gap: 20px;
}

.editor-section {
  margin: 0;
  padding: 22px 18px 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
}

.editor-section legend {
  padding: 0 10px;
  font-size: 1.3rem;
}

.section-description {
  margin: 0 0 18px;
}

.fields-grid {
  display: grid;
  gap: 16px;
}

.editor-footer {
  display: flex;
  justify-content: flex-end;
  padding-top: 4px;
}

@media (min-width: 820px) {
  .access-page {
    padding: 42px 28px 84px;
  }

  .panel,
  .notice {
    padding-left: 28px;
    padding-right: 28px;
  }

  .fields-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .field-wide {
    grid-column: span 2;
  }
}
