/* Minimalistisches Styling fuer Login- und Verwaltungsseiten. */

:root {
    --bg:           #0f172a;
    --bg-elev:      #1e293b;
    --bg-card:      #ffffff;
    --text:         #0f172a;
    --text-soft:    #475569;
    --text-onbg:    #e2e8f0;
    --primary:      #2563eb;
    --primary-hov:  #1d4ed8;
    --danger:       #b91c1c;
    --danger-hov:   #991b1b;
    --border:       #e2e8f0;
    --shadow:       0 10px 25px rgba(15, 23, 42, 0.15);
    --radius:       8px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: var(--text);
}

/* === Auth-Page (Login) === */

.page-auth {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.auth-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 420px;
}

.auth-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
    text-align: center;
}

.auth-subtitle {
    color: var(--text-soft);
    text-align: center;
    margin: 0 0 1.75rem;
    font-size: 0.95rem;
}

/* === Forms === */

.field {
    display: block;
    margin-bottom: 1rem;
}

.field-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-soft);
    margin-bottom: 0.35rem;
    font-weight: 500;
}

input[type="text"],
input[type="password"],
select {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    background: #fff;
    color: var(--text);
    transition: border-color 0.15s, box-shadow 0.15s;
}

input[type="text"]:focus,
input[type="password"]:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

button {
    cursor: pointer;
    padding: 0.65rem 1.25rem;
    border: 0;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: inherit;
    background: var(--border);
    color: var(--text);
    transition: background 0.15s;
}

button:hover { background: #cbd5e1; }

.btn-primary {
    background: var(--primary);
    color: #fff;
    width: 100%;
    padding: 0.75rem;
    margin-top: 0.5rem;
    font-size: 0.95rem;
}

.btn-primary:hover { background: var(--primary-hov); }

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.btn-danger:hover { background: var(--danger-hov); }

/* === Alerts === */

.alert {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
}

.alert-error    { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.alert-success  { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.alert-info     { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }

/* === Admin-Page === */

.page-admin {
    background: #f8fafc;
    min-height: 100vh;
}

.topbar {
    background: var(--bg-elev);
    color: var(--text-onbg);
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.topbar-title { font-weight: 600; }

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
}

.topbar-meta { color: #94a3b8; }

.topbar-actions a {
    color: var(--text-onbg);
    text-decoration: none;
    padding: 0.35rem 0.75rem;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.08);
    transition: background 0.15s;
}

.topbar-actions a:hover { background: rgba(255, 255, 255, 0.16); }

.admin-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.card h2 {
    margin: 0 0 1rem;
    font-size: 1.1rem;
    color: var(--text);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

@media (max-width: 720px) {
    .grid-3 { grid-template-columns: 1fr; }
}

/* === User-Tabelle === */

.users-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.users-table th,
.users-table td {
    padding: 0.65rem 0.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

.users-table th {
    color: var(--text-soft);
    font-weight: 500;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.users-table .tag {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    font-size: 0.7rem;
    padding: 0.1rem 0.5rem;
    border-radius: 10px;
    margin-left: 0.4rem;
    text-transform: uppercase;
    font-weight: 600;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.inline-form {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.inline-form input[type="password"],
.inline-form select {
    width: auto;
    padding: 0.35rem 0.5rem;
    font-size: 0.85rem;
}

.inline-form button {
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
}
