/* === /assets/style.css (NEUE VERSION) === */

/* Importiert eine moderne, saubere Schriftart von Google */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

/* Grundlegendes Reset & Body-Styling */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', Arial, sans-serif;
    /* Ein schöner, moderner Farbverlauf für den Hintergrund */
    background: linear-gradient(135deg, #1a1a2e, #2a2a4e);
    color: #e0e0e0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

/* Der Haupt-Container (Login/Register/Dashboard) */
.container {
    width: 100%;
    max-width: 420px;
    /* "Glassmorphism"-Effekt: halbtransparent mit Weichzeichner */
    background-color: rgba(42, 42, 78, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
}

/* Überschriften (z.B. "Login", "Willkommen!") */
h2 {
    text-align: center;
    color: #ffffff;
    margin-bottom: 25px;
    font-weight: 700;
}

/* Normale Textabsätze */
p {
    text-align: center;
    color: #b0b0c0; /* Ein weicheres Grau */
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Links (z.B. "Hier einloggen") */
a {
    color: #7a7afc; /* Eine helle Akzentfarbe */
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #9a9aff; /* Heller beim Überfahren */
}

/* Formular-Beschriftungen */
label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #c0c0d0;
}

/* Eingabefelder (Username, Passwort, etc.) */
input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 14px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background-color: #1a1a2e; /* Passt zum Hintergrund */
    color: #ffffff;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.2s, box-shadow 0.2s;
}

/* Visuelles Feedback, wenn ein Feld angeklickt wird */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: #7a7afc; /* Akzentfarbe als Rahmen */
    box-shadow: 0 0 10px rgba(122, 122, 252, 0.3); /* Leuchteffekt */
}

/* Alle Buttons */
button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #6a6afc, #7a7afc); /* Akzent-Farbverlauf */
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

/* Hover-Effekt für Buttons */
button:hover {
    box-shadow: 0 4px 15px rgba(122, 122, 252, 0.4);
    transform: translateY(-2px); /* Hebt den Button leicht an */
}

/* Fehler- und Erfolgsnachrichten */
.message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    text-align: center;
    color: white;
    font-weight: 600;
    border: 1px solid;
}

.error { 
    background-color: rgba(217, 83, 79, 0.5); /* Halbtransparent */
    border-color: #D9534F;
}

.success { 
    background-color: rgba(92, 184, 92, 0.5); /* Halbtransparent */
    border-color: #5CB85C;
}


/* === Spezifische Styles für Unterseiten === */

/* Dashboard.php (Statistik-Boxen) */
.stat-box { 
    background-color: #1a1a2e; /* Passt zu den Eingabefeldern */
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px; 
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-box h4 { 
    margin: 0 0 10px 0; 
    color: #b0b0c0; /* Weicherer Titel */
    font-size: 16px;
    font-weight: 400;
    text-transform: uppercase; /* GROSSBUCHSTABEN */
}

.stat-box p { 
    font-size: 28px; /* Größere Zahlen */
    margin: 0; 
    color: #ffffff; 
    text-align: left; 
    font-weight: 700;
}

/* Index.php (Die zwei Buttons) */
.button-gruppe {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 25px;
}
.button-gruppe a {
    flex: 1; 
    text-decoration: none;
}
.button-gruppe button {
    width: 100%; 
}

/* Zweiter Button (Registrieren) bekommt einen "Outline"-Stil */
.button-gruppe a:last-child button {
    background: transparent;
    border: 2px solid #7a7afc;
    color: #7a7afc;
}

.button-gruppe a:last-child button:hover {
    background: #7a7afc;
    color: #fff;
}