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

body {
    margin: 0;
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: Canvas;
    color: CanvasText;
}

.card {
    width: min(22rem, calc(100vw - 2rem));
    padding: 2rem;
    border: 1px solid color-mix(in srgb, CanvasText 15%, transparent);
    border-radius: 0.75rem;
}

h1 {
    margin: 0 0 1.5rem;
    font-size: 1.25rem;
}

label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.875rem;
}

input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.6rem 0.7rem;
    margin-bottom: 1rem;
    border: 1px solid color-mix(in srgb, CanvasText 25%, transparent);
    border-radius: 0.4rem;
    background: Field;
    color: FieldText;
    font-size: 1rem;
}

button {
    width: 100%;
    padding: 0.65rem;
    border: 0;
    border-radius: 0.4rem;
    background: #1f6feb;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
}

button:hover {
    background: #1a5fd0;
}

.error, .notice {
    margin: 0 0 1rem;
    padding: 0.6rem 0.7rem;
    border-radius: 0.4rem;
    font-size: 0.875rem;
}

.error {
    background: color-mix(in srgb, #d1242f 15%, transparent);
}

.notice {
    background: color-mix(in srgb, #1f6feb 15%, transparent);
}

.button {
    display: block;
    padding: 0.65rem;
    border-radius: 0.4rem;
    background: #1f6feb;
    color: #fff;
    text-align: center;
    text-decoration: none;
}

.button:hover {
    background: #1a5fd0;
}
