* {
    box-sizing: border-box;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    margin: 0;
    background: #0d1117;
    color: #e6edf3;
    min-height: 100vh;
}

/* ---------- CENTER CARD ---------- */
.container {
    max-width: 900px;
    margin: 60px auto;
    background: #161b22;
    border-radius: 12px;
    padding: 24px 28px;
    box-shadow: 0 10px 40px rgba(0,0,0,.4);
}

/* ---------- HEADINGS ---------- */
h1, h2 {
    margin: 0 0 16px;
    font-weight: 600;
}

/* ---------- FORMS ---------- */
form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

input {
    background: #0d1117;
    border: 1px solid #30363d;
    color: #e6edf3;
    padding: 10px 12px;
    border-radius: 8px;
    outline: none;
    min-width: 160px;
}

input::placeholder {
    color: #8b949e;
}

input:focus {
    border-color: #2f81f7;
}

/* ---------- BUTTONS ---------- */
button {
    background: #238636;
    border: none;
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
}

button:hover {
    background: #2ea043;
}

button.danger {
    background: #da3633;
}

button.danger:hover {
    background: #f85149;
}

/* ---------- TABLE ---------- */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    padding: 12px;
    border-bottom: 1px solid #30363d;
    text-align: left;
}

th {
    color: #8b949e;
    font-weight: 500;
}

tr:hover {
    background: #1f242c;
}

/* ---------- LOGIN ---------- */
body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1f1f2e, #27293d);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    width: 320px;
    text-align: center;
}

.auth-card h2 {
    margin-bottom: 25px;
    color: #edf2f4;
}

.auth-card input {
    width: 100%;
    padding: 12px 15px;
    margin: 10px 0;
    border-radius: 8px;
    border: none;
    outline: none;
}

.auth-card button {
    width: 100%;
    padding: 12px;
    margin-top: 15px;
    border: none;
    border-radius: 8px;
    background-color: #ef233c;
    color: #edf2f4;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.auth-card button:hover {
    background-color: #d90429;
}

.switch-btn {
    background-color: #8d99ae;
}

.switch-btn:hover {
    background-color: #6c757d;
}

.error {
    color: #ef233c;
    margin-bottom: 10px;
}

/* Tabellen für Admin Dashboard */
.auth-card table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    color: #edf2f4;
}

.auth-card table th, .auth-card table td {
    border: 1px solid #6c757d;
    padding: 8px;
    text-align: center;
    font-size: 14px;
}

.auth-card table th {
    background-color: #3a3d5c;
    font-weight: bold;
}

.auth-card table tr:nth-child(even) {
    background-color: #2e2f45;
}

.auth-card table button {
    padding: 5px 8px;
    margin: 2px;
    font-size: 12px;
}
