/* app/static/styles.css
   Minimal erweitert im Stil von ksrminecraft.ch:
   - Tokens (Farben/Radien/Schatten)
   - Roboto + Base
   - Buttons/Forms/Card-Look
   - ohne Hero-Backgrounds, ohne grosse CSS-Übernahme
*/

/* Roboto wie auf ksrminecraft.ch */
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;600;700&display=swap");

/* ------------------------------------------------------------
   Minimal Tokens (abgeleitet aus 00-tokens.css)
------------------------------------------------------------ */
:root{
  /* Hintergründe */
  --bg: #111213;
  --bg-alt: #222325;

  /* Text */
  --text: #111;
  --text-inv: #ffffff;
  --muted: #b9b9b9;

  /* Brand */
  --brand: #53233a;
  --brand-dark: #3a1929;

  /* Akzent */
  --accent: #983f6a;

  /* Radius & Schatten */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;

  --shadow-sm: 0 4px 12px rgba(0,0,0,0.12);
  --shadow: 0 10px 30px rgba(0,0,0,0.25);

  /* Layout */
  --container: 520px;
}

/* ------------------------------------------------------------
   Base / Reset (minimal)
------------------------------------------------------------ */
*,
*::before,
*::after{
  box-sizing: border-box;
}

body{
  margin: 0;
  font-family: "Roboto", sans-serif;
  background: var(--bg);
  color: var(--text-inv);
  line-height: 1.65;
}

/* ------------------------------------------------------------
   Typo
------------------------------------------------------------ */
h1{
  text-align: center;
  color: var(--text-inv);
  font-weight: 800;
  letter-spacing: 0.2px;
  font-size: clamp(1.8rem, 1.5rem + 1.2vw, 2.4rem);
  margin: 0 0 1.25rem 0;
  line-height: 1.05;
}

/* ------------------------------------------------------------
   Container (wird in registration.html benutzt)
------------------------------------------------------------ */
.container{
  width: min(var(--container), 92%);
  margin: 0 auto;
  padding: clamp(24px, 6vh, 64px) 0;
}

/* ------------------------------------------------------------
   Card/Form: gleiche HTML-Struktur, aber “Website-Look”
------------------------------------------------------------ */
form{
  width: 100%;
  max-width: 420px;

  margin: 0 auto;
  padding: 22px 22px 18px;

  background: rgba(49,49,49,1);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: var(--shadow);
}

/* Gruppenabstände (optional, passt zu deinem HTML) */
.form-group{
  margin-bottom: 8px;
}

/* Labels */
label{
  display: block;
  margin-bottom: 8px;
  color: var(--text-inv);
  font-weight: 700;
}

/* Inputs */
input[type="text"],
input[type="email"]{
  width: 100%;
  padding: 12px;
  margin-bottom: 14px;

  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 6px;

  background: rgba(255,255,255,0.96);
  color: var(--text);

  font-family: inherit;
  font-size: 1rem;

  box-sizing: border-box;
}

input[type="text"]:focus,
input[type="email"]:focus{
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(152,63,106,0.25);
}

/* Submit Button (an Button-Brand angelehnt) */
input[type="submit"]{
  width: 100%;
  margin-top: 6px;

  background-color: var(--brand);
  color: #fff;

  padding: 12px 18px;
  border: 1px solid rgba(0,0,0,0.25);
  border-radius: 999px;

  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;

  transition: transform 120ms ease, background-color 150ms ease, filter 150ms ease;
}

input[type="submit"]:hover{
  background-color: var(--brand-dark);
  transform: scale(1.02);
}

input[type="submit"]:focus-visible{
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* ------------------------------------------------------------
   Fehlerliste (ul/li wird in error.html verwendet)
------------------------------------------------------------ */
ul{
  list-style: none;
  padding: 0;
  margin: 0 auto 16px;
  max-width: 520px;
  text-align: center;
}

ul li{
  color: #ff6b6b;
  margin-bottom: 10px;
  font-weight: 600;
}

/* ------------------------------------------------------------
   Links
------------------------------------------------------------ */
a{
  display: block;
  text-align: center;
  margin-top: 18px;

  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-weight: 600;
}

a:hover{
  color: #ffffff;
  text-decoration: underline;
}

.center-text{
  text-align: center;
}


/* ------------------------------------------------------------
   Kleine Helpers für einheitliche Cards
------------------------------------------------------------ */

/* Logo im Card-Kopf */
.logo{
  display: block;
  margin: 0 auto 14px;
  max-width: 220px;
  width: 70%;
  height: auto;
}

/* Card-Text */
.card-text{
  text-align: center;
  margin: 0 0 12px 0;
}

/* Links innerhalb von Fliesstext sollen inline sein */
a.inline-link{
  display: inline;
  margin: 0;
}
