:root {
    color-scheme: light dark;
    font-family: system-ui, sans-serif;
}

body {
    margin: 0;
    line-height: 1.5;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1rem;
    border-bottom: 1px solid #7777;
}

header nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

header form {
    display: inline;
}

.brand {
    font-weight: bold;
    font-size: 1.1rem;
    text-decoration: none;
}

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

main.narrow {
    max-width: 32rem;
}

form p {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin: 0 0 1rem;
}

input, button {
    font: inherit;
    padding: 0.5rem;
}

button {
    cursor: pointer;
    width: fit-content;
}

.hero {
    text-align: center;
    padding: 3rem 1rem 2.5rem;
}

.hero h1 {
    font-size: 2.25rem;
    margin: 0 0 1rem;
}

.hero-lede {
    max-width: 36rem;
    margin: 0 auto 1.5rem;
    font-size: 1.1rem;
    opacity: 0.85;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.hero-guest {
    margin-top: 1.25rem;
}

.button {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    border-radius: 0.35rem;
    border: 1px solid #7777;
    text-decoration: none;
    color: inherit;
    font-weight: 500;
}

.button-primary {
    background: #2e7d32;
    border-color: #2e7d32;
    color: #fff;
}

.link-button {
    background: none;
    border: none;
    padding: 0;
    text-decoration: underline;
    cursor: pointer;
    font: inherit;
    color: inherit;
    opacity: 0.8;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: 1.5rem;
    padding: 1rem 0 2rem;
}

.feature h2 {
    font-size: 1.05rem;
    margin: 0 0 0.4rem;
}

.feature p {
    margin: 0;
    opacity: 0.85;
}

[v-cloak] {
    display: none;
}

.field-error {
    color: #c62828;
    font-size: 0.85rem;
}

input[aria-invalid="true"] {
    border-color: #c62828;
    outline-color: #c62828;
}

.strength-meter {
    display: block;
    height: 0.3rem;
    background: #7773;
    border-radius: 999px;
    overflow: hidden;
}

.strength-meter-fill {
    display: block;
    height: 100%;
    transition: width 0.15s ease, background 0.15s ease;
}

.strength-label {
    font-size: 0.85rem;
    opacity: 0.8;
}

button[disabled] {
    cursor: not-allowed;
    opacity: 0.6;
}

.flash.notice {
    background: #2e7d3220;
    border: 1px solid #2e7d32;
    padding: 0.75rem 1rem;
    border-radius: 0.25rem;
}

.errors {
    background: #c6282820;
    border: 1px solid #c62828;
    padding: 0.75rem 1rem;
    border-radius: 0.25rem;
}

.errors ul {
    margin: 0;
    padding-left: 1.25rem;
}
