/* MODERN WEB-APP THEME - NO EXTERNAL FONTS */
:root {
    --bg: #09090b;
    --card: #18181b;
    --border: #27272a;
    --input: #09090b;
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --text: #fafafa;
    --text-muted: #a1a1aa;
    --radius: 8px;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 40px 20px;
    display: flex;
    justify-content: center;
}

/* Hauptcontainer (die Tabelle, die das Formular hält) */
center > table, 
form > table {
    background-color: var(--card);
    border: 1px solid var(--border) !important;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 450px;
    display: block; /* Erzwingt Block-Layout */
}

/* Tabellenzeilen und Zellen untereinander stapeln */
center > table tr, 
center > table td,
form table tr,
form table td {
    display: block;
    width: 100%;
    padding: 0 !important;
    border: none !important;
}

/* Beschriftungen (Label-Stil) */
td b, td font b {
    display: block;
    margin-top: 16px;
    margin-bottom: 6px;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Input Felder Modernisierung */
input[type="text"], 
input[type="password"], 
input[type="number"], 
input[type="email"], 
select, 
textarea {
    display: block;
    width: 100% !important;
    background-color: var(--input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    padding: 12px 16px;
    font-size: 16px; /* Verhindert Auto-Zoom auf Mobile */
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    margin-bottom: 8px;
}

input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

/* Placeholder Styling */
::placeholder {
    color: #52525b;
}

/* Button als moderne Action */
input[type="submit"], 
button {
    display: block;
    width: 100%;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    padding: 14px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 24px;
    transition: background 0.2s, transform 0.1s;
}

input[type="submit"]:hover {
    background-color: var(--primary-hover);
}

input[type="submit"]:active {
    transform: scale(0.98);
}

/* Links & Footer */
a {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
}

a:hover {
    text-decoration: underline;
}

hr {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 20px 0;
}

/* Falls Bilder drin sind (z.B. Logo) */
img {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
    border-radius: var(--radius);
}