* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* The `hidden` attribute must win over author `display` rules, so JS show/hide
   toggling actually takes effect. */
[hidden] {
    display: none !important;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
}

header {
    background: #2d3748;
    color: white;
    padding: 1rem 2rem;
}

header h1 {
    font-size: 1.5rem;
    font-weight: 600;
}

main {
    max-width: 800px;
    margin: 1.5rem auto;
    padding: 0 1rem;
}

.settings h2,
.auth h2 {
    margin-bottom: 1.5rem;
    color: #2d3748;
}

.auth .card {
    max-width: 400px;
}

.auth-link {
    margin-top: 1.5rem;
    text-align: center;
    color: #718096;
}

.auth-link a {
    color: #4299e1;
    text-decoration: none;
}

.auth-link a:hover {
    text-decoration: underline;
}

.card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.card h3 {
    margin-bottom: 1rem;
    color: #4a5568;
    font-size: 1.1rem;
}

.status {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

.status.connected {
    background: #c6f6d5;
    border: 1px solid #68d391;
}

.status.disconnected {
    background: #fed7d7;
    border: 1px solid #fc8181;
}

.form-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #4a5568;
}

input[type="password"],
input[type="text"],
input[type="email"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1rem;
}

input:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2);
}

small {
    display: block;
    margin-top: 0.5rem;
    color: #718096;
}

small a {
    color: #4299e1;
}

button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: 500;
}

button[type="submit"] {
    background: #4299e1;
    color: white;
}

button[type="submit"]:hover {
    background: #3182ce;
}

button.danger {
    background: #e53e3e;
    color: white;
}

button.danger:hover {
    background: #c53030;
}

.remove-form {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.message {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

.message.success {
    background: #c6f6d5;
    border: 1px solid #68d391;
    color: #276749;
}

.message.error {
    background: #fed7d7;
    border: 1px solid #fc8181;
    color: #c53030;
}

.nav-links {
    margin-bottom: 1.5rem;
}

.nav-links a {
    color: #4299e1;
    text-decoration: none;
}

.nav-links a:hover {
    text-decoration: underline;
}
