:root {
  --bg: #0a0a0a;
  --fg: #d6ffd6;
  --grid: #153e15;
  --link: #7cff7c;
  --accent: #3bff6a;
  --card: #0e1a0e;
  --card-border: #1f5d1f;
  --shadow: rgba(0,255,80,0.1);
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.auth-wrap {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 24px 12px;
  background:
    repeating-linear-gradient(0deg, var(--grid) 0, var(--grid) 1px, transparent 1px, transparent 10px),
    repeating-linear-gradient(90deg, var(--grid) 0, var(--grid) 1px, transparent 1px, transparent 10px);
}

.auth-card {
  width: 100%;
  max-width: 480px;
  background: var(--card);
  border: 2px solid var(--card-border);
  box-shadow: 0 0 28px var(--shadow) inset, 0 0 18px var(--shadow);
  border-radius: 10px;
  padding: 22px;
}

.auth-card h1 {
  margin: 0 0 14px;
  font-size: 20px;
  letter-spacing: .5px;
}

.auth-note {
  opacity: 0.85;
  font-size: 12px;
  margin-bottom: 12px;
}

.auth-form .row { margin-bottom: 12px; }
.auth-form label { display: block; font-size: 12px; color: var(--link); margin-bottom: 6px; }

.auth-input {
  width: 100%;
  padding: 10px 12px;
  background: #000;
  color: var(--fg);
  border: 1px solid var(--grid);
  border-radius: 6px;
  outline: none;
}

.auth-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(59,255,106,0.2);
}

.auth-errorlist {
  background: rgba(255, 0, 0, 0.07);
  border: 1px solid rgba(255, 0, 0, 0.25);
  color: #ff9e9e;
  padding: 8px 10px;
  border-radius: 6px;
  margin: 8px 0 12px;
  font-size: 12px;
}

.auth-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
}

.auth-btn {
  appearance: none;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--fg);
  padding: 10px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

.auth-btn:hover { background: rgba(59,255,106,0.1); }

.auth-links { margin-top: 16px; font-size: 12px; }
.auth-links a { color: var(--link); text-decoration: none; }
.auth-links a:hover { text-decoration: underline; }

.auth-footer {
  text-align: center;
  opacity: 0.7;
  font-size: 12px;
  margin-top: 18px;
}

.auth-footer a {
  color: inherit;
  text-decoration: underline;
}

.auth-footer a:hover,
.auth-footer a:focus {
  color: inherit;
  text-decoration: underline;
}

.legal-footer {
  text-align: center;
  opacity: 0.7;
  font-size: 10px;
}

/* Style default-rendered fields in allauth forms */
.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="number"],
.auth-form select,
.auth-form textarea {
  width: 100%;
  padding: 10px 12px;
  background: #000;
  color: var(--fg);
  border: 1px solid var(--grid);
  border-radius: 6px;
  outline: none;
}

.auth-form input[type="text"]:focus,
.auth-form input[type="email"]:focus,
.auth-form input[type="password"]:focus,
.auth-form input[type="number"]:focus,
.auth-form select:focus,
.auth-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(59,255,106,0.2);
}

.auth-helptext {
  font-size: 13px;
  opacity: 0.8;
  margin-top: 3px;
  color: #a0dba0; /* light green retro tone to match theme */
}
