:root {
    --color-bg: #f4f7f6;
    --color-surface: #ffffff;
    --color-text-main: #333333;
    --color-text-muted: #666666;
    --color-primary: #0056b3;
    --color-primary-hover: #004494;
    --color-error: #dc3545;
    --color-border: #dddddd;
    --font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --border-radius: 6px;
    --shadow: 0 4px 6px rgba(0,0,0,0.05), 0 1px 3px rgba(0,0,0,0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--color-bg);
    color: var(--color-text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.auth-container {
    background: var(--color-surface);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 400px;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header__title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.auth-header__subtitle {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.btn {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn--primary {
    background-color: var(--color-primary);
    color: white;
}

.btn--primary:hover {
    background-color: var(--color-primary-hover);
}

.btn--secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    margin-top: 1rem;
}

.btn--secondary:hover {
    background-color: rgba(0, 86, 179, 0.05);
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--color-border);
}

.divider:not(:empty)::before {
    margin-right: .5em;
}

.divider:not(:empty)::after {
    margin-left: .5em;
}

.alert {
    padding: 0.75rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
    display: none; /* Hidden by default */
}

.alert--error {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--color-error);
    border: 1px solid rgba(220, 53, 69, 0.2);
    display: block; /* Show when class is added */
}

/* Hidden Utility Class */
.u-hidden {
    display: none !important;
}













/* Helferklassen für das Register/Dashboard (CSP-konform) */
.text-muted-small {
    color: var(--color-text-muted);
    font-size: 0.75rem;
    display: block;
    margin-top: 5px;
}

.text-center {
    text-align: center;
}

.text-sm {
    font-size: 0.9rem;
}

.link-primary {
    color: var(--color-primary);
    text-decoration: none;
}

.dashboard-container {
    max-width: 600px;
}

.dashboard-hr {
    margin: 20px 0;
    border: 0;
    border-top: 1px solid var(--color-border);
}

.mb-15 {
    margin-bottom: 15px;
}

.btn-block-center {
    display: block;
    text-align: center;
    text-decoration: none;
}