:root {
  color-scheme: dark;
  --bg: #111;
  --card: #161616;
  --text: #fff;
  --muted: rgba(255, 255, 255, 0.72);
  --line: rgba(255, 255, 255, 0.12);
  --gold: #fcdb66;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #111;
  color: var(--text);
  font-family: "Plus Jakarta Sans", "Noto Sans", sans-serif;
}

body {
  min-width: 320px;
}

.login-overlay {
  position: fixed;
  inset: 0;
  z-index: 100002;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at top, rgba(252, 219, 102, 0.16), transparent 32%),
    rgba(8, 8, 8, 0.9);
}

.login-overlay--hidden {
  display: none;
}

.login-card,
.files-panel {
  width: min(100%, 720px);
  margin: 0 auto;
  padding: 28px;
  border: 1px solid rgba(252, 219, 102, 0.28);
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.login-card {
  width: min(100%, 520px);
}

.files-tools,
.section-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.files-tools {
  margin-bottom: 18px;
}

.files-back,
.section-nav a {
  color: var(--gold);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.files-back:hover,
.section-nav a:hover {
  color: #fff;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-weight: 650;
}

.login-card h1 {
  font-size: 32px;
}

.lead,
.login-message,
.empty-note {
  color: var(--muted);
  line-height: 1.55;
}

.login-form,
.file-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.input-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

input {
  width: 100%;
  padding: 16px 18px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font: inherit;
}

input:focus {
  outline: 1px solid var(--gold);
}

button {
  border: 0;
  font: inherit;
  cursor: pointer;
}

.login-form button,
.cookie-btn {
  border-radius: 100px;
}

.login-form button {
  margin-top: 4px;
  padding: 14px 22px;
  background: var(--gold);
  color: #111;
  font-weight: 700;
}

.login-form button:hover {
  background: #fff;
}

.login-message {
  min-height: 1.4em;
  margin: 14px 0 0;
}

.login-message--warning {
  color: #ffb4b4;
}

.login-message--success {
  color: #b6f3c8;
}

.files-app {
  display: none;
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 64px;
}

body.files-open .files-app {
  display: block;
}

.files-app h1 {
  margin: 8px 0 18px;
  font-size: 40px;
}

.files-section {
  margin-top: 28px;
}

.files-section h2 {
  font-size: 26px;
}

.file-link {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.03);
}

.file-link:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.empty-note {
  margin: 16px 0 0;
}
