/* =========================================================
   My Cortex – Auth-Seiten (Passwort vergessen / zurücksetzen)
   Zentrierte Box, beide Themes. Marken-Blau/Cyan, IBM Plex.
   ========================================================= */

:root {
  --blau: #4a90d9;
  --cyan: #29c5e6;
  --grad: linear-gradient(135deg, var(--blau), var(--cyan));

  --bg: #f5f8fb;
  --karte: #ffffff;
  --karte-2: #f2f5f9;
  --text: #1c2530;
  --text-mut: #64748b;
  --rand: #e4e9f0;
  --rand-stark: #d3dbe6;
  --gruen: #1e8e3e;
  --gruen-bg: rgba(30, 142, 62, .12);
  --rot: #c0392b;
  --rot-bg: rgba(192, 57, 43, .12);
  --schatten: 0 6px 24px rgba(16, 24, 40, .08), 0 1px 3px rgba(16, 24, 40, .06);
  --radius: 16px;
  --radius-s: 9px;
}

[data-theme="dark"] {
  --bg: #0e1620;
  --karte: #161f2b;
  --karte-2: #1b2634;
  --text: #e8edf3;
  --text-mut: #93a1b2;
  --rand: #273241;
  --rand-stark: #33404f;
  --gruen: #4ade80;
  --gruen-bg: rgba(74, 222, 128, .13);
  --rot: #f87171;
  --rot-bg: rgba(248, 113, 113, .14);
  --schatten: 0 8px 30px rgba(0, 0, 0, .45);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(1100px 500px at 50% -10%, rgba(74, 144, 217, .10), transparent 70%),
    var(--bg);
  color: var(--text);
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.box {
  width: 100%;
  max-width: 430px;
  margin: 1.25rem;
  padding: 2.4rem 2.2rem;
  background: var(--karte);
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  box-shadow: var(--schatten);
  text-align: center;
}

.marke { display: inline-flex; align-items: center; gap: .55rem; margin-bottom: 1.4rem; }
.marke img { width: 30px; height: 30px; border-radius: 8px; }
.marke span { font-family: "IBM Plex Serif", Georgia, serif; font-weight: 600; font-size: 1.05rem; }

.symbol {
  width: 60px; height: 60px; margin: 0 auto 1.1rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(74, 144, 217, .16), rgba(41, 197, 230, .16));
  color: var(--blau);
}
.symbol svg { width: 30px; height: 30px; }

h1 {
  font-family: "IBM Plex Serif", Georgia, serif;
  font-size: 1.5rem; font-weight: 600; margin: 0 0 .5rem;
}
.lead { margin: 0 0 1.5rem; color: var(--text-mut); font-size: .95rem; line-height: 1.5; }
.lead strong { color: var(--text); }

form { text-align: left; }
label { display: block; font-size: .82rem; font-weight: 500; margin: 1rem 0 .3rem; color: var(--text-mut); }
input {
  width: 100%; padding: .7rem .8rem;
  border: 1px solid var(--rand-stark); border-radius: var(--radius-s);
  background: var(--bg); color: var(--text); font: inherit; font-size: .95rem;
}
input:focus { outline: none; border-color: var(--blau); box-shadow: 0 0 0 3px rgba(74, 144, 217, .18); }
input[readonly] { color: var(--text-mut); }

.btn {
  width: 100%; margin-top: 1.5rem; padding: .8rem;
  border: none; border-radius: var(--radius-s);
  background: var(--grad); color: #fff; font: inherit; font-weight: 600; font-size: .95rem;
  cursor: pointer;
}
.btn:hover { filter: brightness(1.05); }
.btn-sekundär {
  background: transparent; color: var(--text);
  border: 1px solid var(--rand-stark); margin-top: .7rem;
}
.btn-sekundär:hover { background: var(--karte-2); filter: none; }

.hinweis { margin-top: 1rem; font-size: .82rem; color: var(--text-mut); }
.fehler { margin-top: 1rem; color: var(--rot); font-size: .86rem; }
.alert { margin: 0 0 1.2rem; padding: .7rem 1rem; border-radius: var(--radius-s); font-size: .88rem; text-align: left; }
.alert-fehler { background: var(--rot-bg); color: var(--rot); }
.alert-erfolg { background: var(--gruen-bg); color: var(--gruen); }

.links { margin-top: 1.5rem; font-size: .86rem; }
.links a { color: var(--text-mut); text-decoration: none; }
.links a:hover { color: var(--blau); }

.postfach { font-weight: 600; color: var(--text); word-break: break-all; }

/* Hell/Dunkel-Umschalter (oben rechts, außerhalb der zentrierten Box) */
.theme-toggle {
  position: fixed; top: 1rem; right: 1rem;
  width: 36px; height: 36px; padding: 0; margin: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--rand); border-radius: var(--radius-s);
  background: var(--karte); color: var(--text-mut); cursor: pointer;
}
.theme-toggle:hover { color: var(--text); border-color: var(--rand-stark); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
