/* Google Font: Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

:root {
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --background-color: #0f172a;
    --card-background: #1e293b;
    --border-color: rgba(255, 255, 255, 0.1);
    --border-radius: 20px;
}

body {
    background-color: var(--background-color);
    background-image: 
        radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(59, 130, 246, 0.1) 0px, transparent 50%);
    font-family: var(--font-family);
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100vw;
}

/* Container Reset */
main.container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 440px !important;
    margin: 0 !important;
    padding: 2rem !important;
}

/* Headline Fix: Genug Abstand nach unten */
.auth-brand {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 2.5rem; /* Mehr Platz geschaffen */
    text-align: center;
    color: white;
    letter-spacing: -2px;
    line-height: 1;
}

/* Die Auth-Card als DIV statt Article (um Pico-Styles zu umgehen) */
.auth-card {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    width: 100%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    display: block;
}

.auth-card header {
    padding: 2.5rem 2rem 1.5rem 2rem;
    text-align: center;
}

.auth-card h2 {
    font-weight: 700;
    font-size: 1.6rem;
    margin: 0 0 0.5rem 0;
    color: white;
    background: none;
    -webkit-text-fill-color: initial;
}

.subtitle {
    color: #94a3b8;
    font-size: 0.95rem;
    margin: 0;
}

/* Formular Bereich */
.auth-content {
    padding: 0 2rem 2.5rem 2rem;
}

input:not([type="checkbox"]) {
    background-color: #0f172a !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    padding: 0.8rem 1rem !important;
    color: white !important;
    margin-bottom: 1.25rem !important;
}

button.contrast {
    background: linear-gradient(to bottom, #3b82f6, #2563eb) !important;
    border: none !important;
    font-weight: 700 !important;
    padding: 0.9rem !important;
    border-radius: 12px !important;
    margin-top: 0.5rem !important;
}

/* Footer Fix: Kein Überlappen, sauberer Kontrast */
.auth-card footer {
    background: rgba(15, 23, 42, 0.6);
    border-top: 1px solid var(--border-color);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.auth-card footer a {
    color: #94a3b8 !important;
    text-decoration: none !important;
    font-size: 0.85rem !important;
    transition: color 0.2s ease;
}

.auth-card footer a:hover {
    color: var(--primary) !important;
}

/* Boxen */
.error-msg, .success-box {
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
}

.error-msg { background: rgba(239, 68, 68, 0.15); border: 1px solid #ef4444; color: #f87171; }
.success-box { background: rgba(34, 197, 94, 0.15); border: 1px solid #22c55e; color: #4ade80; }