﻿@charset "UTF-8";
/* ============================================================
   Swizz-IT Auth-Stylesheet
   Login, Registrierung, Passwort-Reset.
   ============================================================ */

/* ----- Design-Variablen ----- */
:root {
  --font-sans: "Inter", "Segoe UI", system-ui, sans-serif;
  --bg: #f8fafc;
  --surface: #ffffff;
  --ink: #1a2332;
  --ink-muted: #52606d;
  --ink-faint: #8a97a4;
  --brand: #2a9d8f;
  --brand-strong: #217f74;
  --brand-rgb: 42, 157, 143;
  --line: #e1e7ed;
  --radius: 16px;
}

/* ----- Basis ----- */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
}

/* Seitengrundlage */
.auth-body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* ----- Dekorativer Hintergrund-Blob ----- */
.auth-bg-blob {
  position: fixed;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(42, 157, 143, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ----- Topbar ----- */
.auth-topbar {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 40;
}

/* Innerer Topbar-Bereich */
.auth-topbar__inner {
  width: min(1200px, 92vw);
  margin: 0 auto;
  padding: 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

/* Logo-Link in der Topbar */
.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.03em;
  font-family: var(--font-sans);
}

/* SVG-Icon neben dem Logo */
.auth-brand__icon {
  width: 24px;
  height: 24px;
  color: var(--brand);
  flex: 0 0 auto;
}

/* Navigationslinks in der Topbar */
.auth-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

/* Einzelner Topbar-Navigationslink */
.auth-nav__link {
  text-decoration: none;
  color: var(--ink-muted);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 12px;
  border-radius: 999px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

/* Hover für Topbar-Links */
.auth-nav__link:hover {
  background: var(--bg);
  color: var(--ink);
}

/* CTA-Variante für Konto erstellen */
.auth-nav__link--cta {
  background: var(--brand);
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(var(--brand-rgb), 0.35);
}

/* CTA-Hover */
.auth-nav__link--cta:hover {
  background: var(--brand-strong);
  color: #ffffff;
}

/* ----- Hauptbereich (zentriert) ----- */
.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px 60px;
  position: relative;
  z-index: 1;
}

/* Inhaltsbreite begrenzen */
.auth-wrap {
  width: 100%;
  max-width: 480px;
}

/* Breiterer Wrap für mehrspaltige Formulare (Register) */
.auth-wrap--wide {
  max-width: 640px;
}

/* Zweispaltiges Formularraster (Register-Formular) */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}

/* Volles Formularfeld (beide Spalten) */
.form-grid .field--full {
  grid-column: 1 / -1;
}

/* Markenzeichen oben in Auth-Karte */
.auth-logo-mark {
  color: var(--brand);
  margin-bottom: 16px;
  display: block;
}

/* Alternativer Aktionsbereich (Registrieren) */
.auth-alt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}

.auth-alt__text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.auth-alt__link {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brand);
  text-decoration: none;
}

.auth-alt__link:hover {
  text-decoration: underline;
}

/* ----- Auth-Karte ----- */
.auth-card {
  background: var(--surface);
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(225, 231, 237, 0.8);
}

/* Titel der Auth-Karte */
.auth-card__title {
  font-family: var(--font-sans);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 4px;
  letter-spacing: -0.02em;
}

/* Untertitel der Auth-Karte */
.auth-card__subtitle {
  font-size: 0.92rem;
  color: var(--ink-muted);
  margin: 0 0 24px;
  line-height: 1.5;
}

/* ----- Formular innerhalb der Auth-Karte ----- */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Feldblock */
.auth-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* Label */
.auth-field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-muted);
  letter-spacing: 0.01em;
}

/* Input */
.auth-input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafbfc;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

/* Fokus für Input */
.auth-input:focus {
  outline: none;
  border-color: var(--brand);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(var(--brand-rgb), 0.15);
}

/* Primärer Submit-Button */
.auth-submit {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: none;
  background: var(--brand);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(var(--brand-rgb), 0.35);
  transition: background-color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
  margin-top: 4px;
}

/* Hover für Submit */
.auth-submit:hover {
  background: var(--brand-strong);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(var(--brand-rgb), 0.4);
}

/* Aktiver Zustand */
.auth-submit:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Fokus für Submit */
.auth-submit:focus-visible {
  outline: 2px solid rgba(var(--brand-rgb), 0.7);
  outline-offset: 2px;
}

/* ----- Statusmeldungen ----- */
.auth-notice {
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
  border: 1px solid var(--line);
  background: #f8fafc;
  color: var(--ink-muted);
}

/* Erfolg */
.auth-notice--success {
  background: #ecfdf5;
  border-color: rgba(16, 185, 129, 0.25);
  color: #065f46;
}

/* Fehler */
.auth-notice--error {
  background: #fff2f2;
  border-color: rgba(220, 53, 69, 0.2);
  color: #991b1b;
}

/* ----- Links innerhalb der Karte ----- */
.auth-link {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.88rem;
}

/* Hover für Link */
.auth-link:hover {
  text-decoration: underline;
}

/* Zeile für sekundäre Links (z.B. Passwort vergessen) */
.auth-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--ink-muted);
  margin-top: 4px;
}

/* ----- Trennlinie im Formular ----- */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0;
  color: var(--ink-faint);
  font-size: 0.82rem;
}

/* Linie links/rechts vom Divider-Text */
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* ----- Fussnote unterhalb der Karte ----- */
.auth-footnote {
  text-align: center;
  margin-top: 18px;
  font-size: 0.88rem;
}

/* Fussnoten-Link */
.auth-footnote__link {
  color: var(--ink-muted);
  font-weight: 600;
  text-decoration: none;
}

/* Hover für Fussnoten-Link */
.auth-footnote__link:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* ----- Abwärtskompatibilität: Alte Klassen aus panel.css ----- */
/* Damit bestehende Views nicht sofort brechen. */
.card {
  background: var(--surface);
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(225, 231, 237, 0.8);
}

.card__title {
  font-family: var(--font-sans);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 4px;
}

.card__subtitle {
  font-size: 0.92rem;
  color: var(--ink-muted);
  margin: 0 0 24px;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: none;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafbfc;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input:focus {
  outline: none;
  border-color: var(--brand);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(var(--brand-rgb), 0.15);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border-radius: 10px;
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #ffffff;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.button:hover {
  background: var(--brand-strong);
  transform: translateY(-1px);
}

.button--ghost {
  background: transparent;
  color: var(--brand);
  border-color: rgba(var(--brand-rgb), 0.35);
}

.button--ghost:hover {
  background: rgba(var(--brand-rgb), 0.08);
}

.notice {
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
  border: 1px solid var(--line);
  background: #f8fafc;
  color: var(--ink-muted);
}

.notice--success {
  background: #ecfdf5;
  border-color: rgba(16, 185, 129, 0.25);
  color: #065f46;
}

.notice--error {
  background: #fff2f2;
  border-color: rgba(220, 53, 69, 0.2);
  color: #991b1b;
}

.link {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
}

.link:hover {
  text-decoration: underline;
}

/* ----- Responsive ----- */
@media (max-width: 520px) {
  .auth-card, .card {
    padding: 28px 22px;
  }

  .auth-nav__link--cta {
    display: none;
  }
}
