/* Auth-Seiten — eigenständiges, schlankes Styling im Momentum-Plan-Look
   (British Racing Green, Off-Black, Glassmorphism). Bewusst unabhängig von der
   großen app-style.css, damit die Login-Seite ohne die ganze App lädt. */
:root {
  --bg: #0A0E0C;
  --bg-card: rgba(20, 28, 24, 0.6);
  --bg-input: rgba(15, 20, 17, 0.55);
  --accent: #1F4D3D;
  --accent-hover: #2A6B54;
  --text-primary: #F5F0E8;
  --text-muted: rgba(245, 240, 232, 0.55);
  --border: rgba(31, 77, 61, 0.25);
  --border-strong: rgba(31, 77, 61, 0.45);
  --error: #E66B5C;
  --success: #4ADE80;
  --gradient: linear-gradient(90deg, #1F4D3D 0%, #2A6B54 100%);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  -webkit-font-smoothing: antialiased;
}

/* Ambientes Grün-Glow analog zur App */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(900px 600px at 15% -5%, rgba(31, 77, 61, 0.22), transparent 60%),
    radial-gradient(800px 600px at 110% 110%, rgba(42, 107, 84, 0.16), transparent 55%);
  pointer-events: none;
  z-index: 0;
}

.auth-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 36px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

/* Zurück-zur-Landing-Page-Link: oben links, dezent, Hover macht voll opak. */
.auth-back-link {
  position: fixed;
  top: 24px;
  left: 24px;
  z-index: 2;
  font-size: 0.9em;
  font-weight: 500;
  color: var(--text-primary);
  opacity: 0.7;
  text-decoration: none;
  transition: opacity 0.18s;
}
.auth-back-link:hover { opacity: 1; }

.auth-brand {
  display: inline-block;
  text-decoration: none;
  font-size: 1.05em;
  font-weight: 700;
  letter-spacing: -0.01em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 28px;
}

.auth-card h1 {
  font-size: 1.55em;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.auth-sub {
  color: var(--text-muted);
  font-size: 0.92em;
  line-height: 1.5;
  margin: 0 0 26px;
}

.auth-field { margin-bottom: 16px; }

.auth-field label {
  display: block;
  font-size: 0.78em;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 7px;
}

.auth-field input {
  width: 100%;
  padding: 12px 14px;
  font-size: 0.98em;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 11px;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.auth-field input:focus {
  outline: none;
  border-color: var(--border-strong);
  box-shadow: 0 0 0 3px rgba(31, 77, 61, 0.18);
}

.auth-btn {
  width: 100%;
  margin-top: 6px;
  padding: 13px 16px;
  font-size: 0.98em;
  font-weight: 600;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--gradient);
  border: none;
  border-radius: 11px;
  cursor: pointer;
  transition: filter 0.18s, opacity 0.18s;
}

.auth-btn:hover { filter: brightness(1.08); }
.auth-btn:disabled { opacity: 0.55; cursor: default; filter: none; }

.auth-btn-ghost {
  background: transparent;
  border: 1px solid var(--border-strong);
}
.auth-btn-ghost:hover { background: rgba(31, 77, 61, 0.18); filter: none; }

.auth-links {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.88em;
}

.auth-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.18s;
}
.auth-links a:hover { color: var(--text-primary); }
.auth-links a strong { color: var(--accent-hover); font-weight: 600; }

.auth-msg {
  margin: 0 0 18px;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 0.88em;
  line-height: 1.45;
  display: none;
}
.auth-msg.show { display: block; }
.auth-msg.error { background: rgba(230, 107, 92, 0.12); border: 1px solid rgba(230, 107, 92, 0.4); color: #F2A99F; }
.auth-msg.info  { background: rgba(31, 77, 61, 0.16); border: 1px solid var(--border-strong); color: var(--text-primary); }
.auth-msg.success { background: rgba(74, 222, 128, 0.12); border: 1px solid rgba(74, 222, 128, 0.4); color: #A7E9C0; }

.auth-hint {
  font-size: 0.8em;
  color: var(--text-muted);
  margin-top: -8px;
  margin-bottom: 16px;
}

.auth-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(31, 77, 61, 0.2);
  border: 1px solid var(--border-strong);
  margin-bottom: 20px;
  font-size: 1.5em;
}
