:root {
    color-scheme: light;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f3f6ff;
    color: #121828;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem;
}

.container {
    width: min(520px, 100%);
}

h1 {
    margin: 0 0 1rem;
    font-size: clamp(2rem, 3vw, 2.5rem);
    text-align: center;
}

.card {
    background: white;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 24px;
    padding: 1.75rem;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.08);
}

label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.output-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

#password-output {
    width: 100%;
    padding: 0.95rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    font-size: 1rem;
    letter-spacing: 0.04em;
    background: #f8fafc;
}

button {
    border: none;
    border-radius: 14px;
    padding: 0.95rem 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.16s ease, background-color 0.16s ease, filter 0.16s ease;
}

button:hover {
    transform: translateY(-1px);
}

button:active {
    transform: translateY(0);
}

.primary {
    width: 100%;
    background: #3f6bff;
    color: white;
}

#copy-btn {
    background: #eceef7;
    color: #111827;
}

.controls {
    display: grid;
    gap: 1rem;
}

#length {
    width: 100%;
}

.checkbox-group {
    display: grid;
    gap: 0.85rem;
    padding: 0.5rem 0;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
}
