/* AÜ Content-Kalender — Auth-Pages Stylesheet
 * AÜ-CD: Merriweather + PT Sans, Rot #e20613, Beige #faf6e5, Akzentrot #9a1d28
 * Self-hosted Fonts (DSGVO) — Pfade relativ zu Root, nicht zur CSS-Datei.
 */

@font-face {
  font-family: "Merriweather"; font-style: normal; font-weight: 300; font-display: swap;
  src: url("fonts/merriweather-300-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Merriweather"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/merriweather-700-latin.woff2") format("woff2");
}
@font-face {
  font-family: "PT Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/pt-sans-400-latin.woff2") format("woff2");
}
@font-face {
  font-family: "PT Sans"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/pt-sans-700-latin.woff2") format("woff2");
}

:root {
  --au-rot: #e20613;
  --au-rot-dunkel: #9a1d28;
  --au-beige: #faf6e5;
  --au-hellgrau: #f4f4f4;
  --au-text: #555;
  --au-heading: #1a1a1a;
  --au-muted: #5c6369;
  --au-border: #e5e0d0;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "PT Sans", -apple-system, "Segoe UI", sans-serif;
  background: var(--au-beige);
  color: var(--au-text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background:
    radial-gradient(circle at 12% 18%, rgba(240,115,33,0.12), transparent 55%),
    radial-gradient(circle at 88% 82%, rgba(226,6,19,0.10), transparent 55%),
    var(--au-beige);
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border: 1px solid var(--au-border);
  border-radius: 14px;
  padding: 2.5rem;
  box-shadow: 0 20px 50px -20px rgba(226,6,19,0.15), 0 4px 12px -4px rgba(0,0,0,0.08);
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}
.auth-logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--au-rot);
  color: #ffffff;
  font-family: "Merriweather", serif;
  font-weight: 700;
  font-size: 22px;
  border-radius: 12px;
  margin-bottom: 1rem;
  box-shadow: 0 8px 20px -4px rgba(226,6,19,0.35);
}
.auth-title {
  font-family: "Merriweather", serif;
  font-weight: 300;
  font-size: 28px;
  color: var(--au-heading);
  margin: 0 0 0.4rem;
  letter-spacing: -0.01em;
}
.auth-subtitle {
  font-size: 14px;
  color: var(--au-muted);
  margin: 0;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.auth-field { display: flex; flex-direction: column; gap: 6px; }
.auth-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--au-heading);
  letter-spacing: 0.02em;
}
.auth-field input[type="email"],
.auth-field input[type="text"],
.auth-field input[type="password"] {
  padding: 12px 14px;
  border: 1.5px solid var(--au-border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  color: var(--au-heading);
  background: #ffffff;
  transition: border-color 150ms, box-shadow 150ms;
}
.auth-field input:focus {
  outline: none;
  border-color: var(--au-rot);
  box-shadow: 0 0 0 3px rgba(226,6,19,0.15);
}
.auth-field input[type="file"] {
  padding: 10px;
  border: 1.5px dashed var(--au-border);
  border-radius: 8px;
  font-size: 13px;
  background: var(--au-hellgrau);
}
.auth-hint {
  font-size: 12px;
  color: var(--au-muted);
}

.auth-checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--au-text);
  line-height: 1.5;
  cursor: pointer;
}
.auth-checkbox input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: var(--au-rot);
  flex-shrink: 0;
}
.auth-checkbox a { color: var(--au-rot); }

.auth-btn {
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 150ms, transform 150ms, box-shadow 150ms;
}
.auth-btn--primary {
  background: var(--au-rot);
  color: #ffffff;
  box-shadow: 0 6px 18px -6px rgba(226,6,19,0.4);
}
.auth-btn--primary:hover:not(:disabled) {
  background: var(--au-rot-dunkel);
  transform: translateY(-1px);
}
.auth-btn:disabled {
  background: var(--au-muted);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.auth-error,
.auth-success {
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
  margin-top: 0.5rem;
}
.auth-error {
  background: rgba(226,6,19,0.08);
  border: 1px solid rgba(226,6,19,0.25);
  color: var(--au-rot-dunkel);
}
.auth-success {
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.25);
  color: #064e3b;
}

.auth-links {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--au-border);
  font-size: 14px;
}
.auth-links a {
  color: var(--au-rot);
  text-decoration: none;
  font-weight: 700;
}
.auth-links a:hover { text-decoration: underline; }

@media (max-width: 480px) {
  .auth-card { padding: 1.75rem 1.25rem; }
  .auth-title { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-btn, .auth-field input { transition: none; }
}
