*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-dark:      #0d1117;
  --bg-card:      #161b22;
  --bg-input:     #21262d;
  --border:       #30363d;
  --accent:       #e63946;
  --accent-hover: #c1121f;
  --text:         #e6edf3;
  --text-muted:   #8b949e;
  --success:      #3fb950;
}

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text);
  min-height: 100vh;
}

/* Hintergrund */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
}

.bg-overlay {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(230,57,70,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(56,139,253,0.06) 0%, transparent 50%);
  z-index: 0;
  pointer-events: none;
}

/* Login Box */
.login-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 1;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

/* Logo */
.logo {
  text-align: center;
  margin-bottom: 32px;
}

.logo-icon {
  font-size: 48px;
  display: block;
  margin-bottom: 8px;
  filter: drop-shadow(0 0 12px rgba(230,57,70,0.6));
}

.logo h1 {
  font-size: 28px;
  font-weight: 700;
}

.accent { color: var(--accent); }

.tagline {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 6px;
}

/* Tabs */
.tabs {
  display: flex;
  background: var(--bg-input);
  border-radius: 8px;
  padding: 4px;
  margin-bottom: 24px;
  gap: 4px;
}

.tab {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.tab.active {
  background: var(--bg-card);
  color: var(--text);
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.tab:hover:not(.active) { color: var(--text); }

/* Formulare */
.form {
  display: none;
  flex-direction: column;
  gap: 16px;
}

.form.active { display: flex; }

.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input-group label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.input-group input {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 15px;
  transition: border-color 0.2s;
  outline: none;
}

.input-group input:focus { border-color: var(--accent); }
.input-group input::placeholder { color: var(--text-muted); }

/* Button */
.btn-primary {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 13px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  margin-top: 4px;
}

.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:active { transform: scale(0.98); }

/* Meldungen */
.form-msg {
  font-size: 13px;
  text-align: center;
  min-height: 18px;
}

.form-msg.error   { color: var(--accent); }
.form-msg.success { color: var(--success); }
