/* Auth (Login / Einrichtung) – ergänzt app.css */

.auth-page {
  min-height: 100vh;
  margin: 0;
  font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  background: linear-gradient(160deg, #e4e9ef 0%, var(--lx-bg) 50%, #e8f0eb 100%);
  background-attachment: fixed;
}

.auth-shell {
  display: flex;
  min-height: 100vh;
}

.auth-brand {
  flex: 1.05;
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4rem);
  background: linear-gradient(145deg, #15202b 0%, #1e2936 42%, #0d3d29 100%);
  color: #f1f5f9;
  overflow: hidden;
}

.auth-brand::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
      rgba(255, 255, 255, 0.06) 1px,
      transparent 1px
    ),
    radial-gradient(circle at 20% 80%, rgba(0, 166, 81, 0.35), transparent 45%),
    radial-gradient(circle at 85% 15%, rgba(0, 166, 81, 0.2), transparent 40%);
  background-size: 24px 24px, 100% 100%, 100% 100%;
  pointer-events: none;
}

.auth-brand-inner {
  position: relative;
  z-index: 1;
  align-self: center;
  max-width: 420px;
}

.auth-logo {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--lx-green) 0%, #006b3a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 12px 40px rgba(0, 166, 81, 0.35);
}

.auth-logo svg {
  width: 28px;
  height: 28px;
  color: #fff;
}

.auth-brand h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.75rem, 3vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.auth-brand .tagline {
  margin: 0 0 2rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(241, 245, 249, 0.72);
}

.auth-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.auth-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.92rem;
  color: rgba(241, 245, 249, 0.88);
  line-height: 1.45;
}

.auth-features li::before {
  content: "";
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 0.4rem;
  border-radius: 50%;
  background: var(--lx-green);
  box-shadow: 0 0 0 3px rgba(0, 166, 81, 0.25);
}

.auth-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 3rem);
  position: relative;
}

.auth-main::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(0, 166, 81, 0.06), transparent 55%);
  pointer-events: none;
}

.auth-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  background: linear-gradient(180deg, #fff 0%, #fafbfc 100%);
  border-radius: 18px;
  padding: clamp(1.75rem, 4vw, 2.35rem);
  border: 1px solid rgba(226, 230, 234, 0.95);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 16px 48px rgba(30, 41, 54, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.6) inset;
}

.auth-card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--lx-text);
}

.auth-card .lead {
  margin: 0 0 1.5rem;
  font-size: 0.92rem;
  color: var(--lx-muted);
  line-height: 1.5;
}

.auth-alert {
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  font-size: 0.88rem;
  line-height: 1.45;
  margin-bottom: 1.1rem;
}

.auth-alert.ok {
  background: rgba(0, 166, 81, 0.1);
  color: #0f5132;
  border: 1px solid rgba(0, 166, 81, 0.22);
}

.auth-alert.err {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.auth-field {
  margin-bottom: 1.1rem;
}

.auth-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--lx-text);
  margin-bottom: 0.4rem;
}

.auth-field input {
  width: 100%;
  padding: 0.7rem 0.95rem;
  border: 1px solid var(--lx-border);
  border-radius: 10px;
  font: inherit;
  font-size: 0.95rem;
  background: #fafbfc;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.auth-field input:hover {
  background: var(--lx-surface);
}

.auth-field input:focus {
  outline: none;
  border-color: var(--lx-green);
  background: var(--lx-surface);
  box-shadow: 0 0 0 3px rgba(0, 166, 81, 0.18);
}

.auth-submit {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.75rem 1.25rem;
  justify-content: center;
  font-weight: 600;
  border-radius: 10px;
  font-size: 0.95rem;
}

.auth-foot {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--lx-muted);
  text-align: center;
  max-width: 420px;
}

.auth-foot kbd {
  font-family: inherit;
  font-size: 0.78em;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background: var(--lx-bg);
  border: 1px solid var(--lx-border);
}

@media (max-width: 960px) {
  .auth-shell {
    flex-direction: column;
  }

  .auth-brand {
    flex: none;
    min-height: auto;
    padding: 2rem 1.5rem 2.5rem;
  }

  .auth-brand-inner {
    max-width: none;
  }

  .auth-features {
    display: none;
  }

  .auth-main {
    flex: 1;
    margin-top: -2rem;
  }

  .auth-card {
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -8px 40px rgba(30, 41, 54, 0.12);
  }
}
