:root {
    color-scheme: dark;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #111827;
    color: #f3f4f6;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top, #1f2937 0, #111827 45%);
}

button,
input {
    font: inherit;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 24px 32px;
    border-bottom: 1px solid #374151;
    background: rgba(17, 24, 39, 0.92);
}

.topbar h1,
.topbar p {
    margin: 0;
}

.topbar p {
    margin-top: 4px;
    color: #9ca3af;
}

.container {
    width: min(1100px, calc(100% - 32px));
    margin: 32px auto;
}

.server-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.server-card,
.login-card {
    border: 1px solid #374151;
    border-radius: 14px;
    background: rgba(31, 41, 55, 0.95);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
}

.server-card {
    padding: 24px;
}

.server-header h2,
.server-header p {
    margin: 0;
}

.server-header p {
    margin-top: 6px;
    color: #9ca3af;
}

.actions {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.action-button {
    width: 100%;
    padding: 16px;
    border: 1px solid #4b5563;
    border-radius: 10px;
    text-align: left;
    color: white;
    background: #374151;
    cursor: pointer;
}

.action-button:hover {
    filter: brightness(1.12);
}

.action-button strong,
.action-button span {
    display: block;
}

.action-button span {
    margin-top: 4px;
    font-size: 0.9rem;
    color: #d1d5db;
}

.action-button.safe {
    background: #1d4ed8;
    border-color: #2563eb;
}

.action-button.warning {
    background: #92400e;
    border-color: #d97706;
}

.logout-button {
    padding: 10px 18px;
    border: 1px solid #4b5563;
    border-radius: 8px;
    color: white;
    background: transparent;
    cursor: pointer;
}

.alert {
    margin-bottom: 24px;
    padding: 14px 16px;
    border-radius: 10px;
}

.alert.success {
    border: 1px solid #16a34a;
    background: rgba(22, 163, 74, 0.18);
}

.alert.error {
    border: 1px solid #dc2626;
    background: rgba(220, 38, 38, 0.18);
}

.login-page {
    display: grid;
    place-items: center;
    padding: 24px;
}

.login-card {
    width: min(420px, 100%);
    padding: 32px;
}

.login-card h1 {
    margin-top: 0;
}

.login-card p {
    color: #9ca3af;
}

.login-card label {
    display: block;
    margin-bottom: 8px;
}

.login-card input {
    width: 100%;
    padding: 12px;
    border: 1px solid #4b5563;
    border-radius: 8px;
    color: white;
    background: #111827;
}

.primary-button {
    width: 100%;
    margin-top: 16px;
    padding: 12px;
    border: 0;
    border-radius: 8px;
    color: white;
    background: #2563eb;
    cursor: pointer;
}