:root {
  color-scheme: dark;
  --bg: #0a1f1a;
  --bg-alt: #112d26;
  --text: #e8f5f0;
  --text-dim: rgba(232, 245, 240, 0.68);
  --primary: #4ade80;
  --primary-strong: #22c55e;
  --accent: #fbbf24;
  --danger: #ef4444;
  --success: #22c55e;
  --card: rgba(17, 45, 38, 0.9);
  --card-bg: rgba(17, 45, 38, 0.95);
  --border: rgba(74, 222, 128, 0.2);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.24);
  --input-bg: rgba(255, 255, 255, 0.06);
  --input-bg-focus: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f3e8;
  --bg-alt: #fdfcf7;
  --text: #2d3a2e;
  --text-dim: rgba(45, 58, 46, 0.66);
  --primary: #2d7a3f;
  --primary-strong: #1f5c2f;
  --accent: #d68c00;
  --danger: #c53030;
  --success: #1f8b4c;
  --card: rgba(253, 252, 247, 0.94);
  --card-bg: rgba(253, 252, 247, 0.98);
  --border: rgba(45, 122, 63, 0.18);
  --shadow: 0 10px 30px rgba(45, 58, 46, 0.12);
  --input-bg: rgba(255, 255, 255, 0.9);
  --input-bg-focus: rgba(255, 255, 255, 1);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(10, 31, 26, 0.95) 0%, rgba(17, 45, 38, 0.9) 100%),
    var(--bg);
  overflow-x: hidden;
}

body.auth-screen {
  height: 100vh;
  overflow: hidden;
}

body.auth-screen .container {
  width: min(560px, 100vw);
  height: 100vh;
  margin: 0 auto;
  padding: 20px 16px;
  display: grid;
  place-items: center;
}

[data-theme="light"] body {
  background:
    linear-gradient(135deg, rgba(245, 243, 232, 0.98) 0%, rgba(253, 252, 247, 0.95) 100%),
    var(--bg);
}

.bg-shape {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(80px);
  opacity: 0.2;
  pointer-events: none;
}

.bg-shape-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.45) 0%, transparent 70%);
  top: -100px;
  right: -100px;
}

.bg-shape-2 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.45) 0%, transparent 70%);
  left: -100px;
  bottom: -100px;
}

.container {
  width: min(1160px, 94vw);
  margin: 24px auto;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

input,
select,
button,
textarea {
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--input-bg);
  color: var(--text);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--input-bg-focus);
}

button {
  cursor: pointer;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 18px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-strong), var(--primary));
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(34, 197, 94, 0.22);
}

.btn-primary:hover {
  filter: brightness(1.03);
}

.hidden {
  display: none !important;
}
