* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1b1f24;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #e6edf3;
}

.card {
    background: #22272e;
    border: 1px solid #373e47;
    border-radius: 10px;
    padding: 2.5rem;
    width: 100%;
    max-width: 360px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    text-align: center;
}

.card-wide {
    max-width: 640px;
    text-align: left;
}

h1 {
    margin-top: 0;
    font-size: 1.4rem;
}

.subtitle {
    color: #8b949e;
    margin-bottom: 2rem;
}

form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: left;
}

label {
    font-size: 0.85rem;
    color: #8b949e;
}

input[type="text"],
input[type="password"] {
    padding: 0.6rem 0.75rem;
    border-radius: 6px;
    border: 1px solid #373e47;
    background: #1b1f24;
    color: #e6edf3;
    font-size: 1rem;
}

.btn {
    margin-top: 0.5rem;
    padding: 0.65rem 1rem;
    border: none;
    border-radius: 6px;
    background: #2f81f7;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
}

.btn:hover {
    opacity: 0.9;
}

.btn-danger {
    background: #da3633;
}

.btn-link {
    background: none;
    color: #8b949e;
    text-decoration: underline;
}

.actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.status {
    margin-bottom: 1.5rem;
}

.status h2 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.status h3 {
    font-size: 0.95rem;
    color: #8b949e;
    margin: 1.25rem 0 0.5rem;
}

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

.status-table th,
.status-table td {
    text-align: left;
    padding: 0.4rem 0.6rem;
    border-bottom: 1px solid #373e47;
}

.status-table th {
    color: #8b949e;
    font-weight: 600;
}

.status-table.kv th {
    width: 30%;
}

.logout {
    margin-top: 1.5rem;
}

.flashes {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    text-align: left;
}

.flash {
    padding: 0.6rem 0.8rem;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.flash-error {
    background: rgba(218, 54, 51, 0.15);
    color: #ff7b72;
    border: 1px solid rgba(218, 54, 51, 0.4);
}

.flash-success {
    background: rgba(63, 185, 80, 0.15);
    color: #56d364;
    border: 1px solid rgba(63, 185, 80, 0.4);
}

.flash-info {
    background: rgba(210, 153, 34, 0.15);
    color: #e3b341;
    border: 1px solid rgba(210, 153, 34, 0.4);
    font-family: monospace;
}

.banner {
    padding: 0.6rem 0.8rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
}

.banner-test {
    background: rgba(210, 153, 34, 0.15);
    color: #e3b341;
    border: 1px solid rgba(210, 153, 34, 0.4);
}
