:root {
  --bg: #0f172a;
  --panel: #111827;
  --panel-2: #1f2937;
  --text: #e5e7eb;
  --muted: #94a3b8;
  --accent: #22c55e;
  --accent-hover: #16a34a;
  --border: rgba(255, 255, 255, 0.08);
  --danger: #ef4444;
  --warning: #f59e0b;
  --success: #22c55e;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top, rgba(34, 197, 94, 0.14), transparent 30%),
    linear-gradient(180deg, #020617 0%, #0f172a 100%);
  color: var(--text);
}

body {
  display: grid;
  place-items: center;
  padding: 24px;
}

.container {
  width: 100%;
  max-width: 520px;
}

.card {
  background: rgba(17, 24, 39, 0.92);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  backdrop-filter: blur(10px);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.08);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  margin-bottom: 18px;
}

h1 {
  margin: 0 0 8px;
  font-size: 1.9rem;
  line-height: 1.1;
}

p {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.6;
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 22px;
}

.tab-button {
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--text);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.tab-button.active {
  background: var(--accent);
  color: #052e16;
  border-color: transparent;
}

.tab-button:hover,
.tab-button:focus-visible {
  transform: translateY(-1px);
}

.panel {
  display: none;
}

.panel.active {
  display: block;
}

form {
  display: grid;
  gap: 16px;
}

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

label {
  font-size: 0.95rem;
  font-weight: 600;
}

input {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--text);
  border-radius: 12px;
  padding: 14px 15px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input::placeholder {
  color: #9ca3af;
}

input:focus {
  border-color: rgba(34, 197, 94, 0.65);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.14);
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.checkbox {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 0.95rem;
}

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

a {
  color: #86efac;
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

button[type="submit"] {
  border: 0;
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  background: var(--accent);
  color: #052e16;
  transition: transform 0.15s ease, background 0.2s ease;
}

button[type="submit"]:hover,
button[type="submit"]:focus-visible {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.footer {
  margin-top: 18px;
  font-size: 0.88rem;
  color: var(--muted);
  text-align: center;
}

.security-note {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  color: #cbd5e1;
  font-size: 0.92rem;
  line-height: 1.55;
}

.security-note strong {
  color: #f8fafc;
}

.message {
  display: none;
  margin-top: 4px;
  font-size: 0.92rem;
  border-radius: 10px;
  padding: 10px 12px;
  line-height: 1.5;
}

.message.show {
  display: block;
}

.message.error {
  background: rgba(239, 68, 68, 0.12);
  color: #fecaca;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.message.success {
  background: rgba(34, 197, 94, 0.12);
  color: #bbf7d0;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.helper-link {
  text-align: center;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 520px) {
  .card {
    padding: 24px;
  }

  h1 {
    font-size: 1.6rem;
  }
}
