:root {
    color-scheme: dark;
    font-family: system-ui, sans-serif;
    color: #f5f1e8;
    background: #111110;
}

*, *::before, *::after {
    box-sizing: border-box;
}

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

.cartao {
    width: min(100%, 27rem);
    padding: clamp(1.5rem, 6vw, 2.5rem);
    border: 1px solid #40372a;
    border-top: 3px solid #d7ac62;
    border-radius: .85rem;
    background: #1c1b18;
}

.marca {
    margin: 0 0 .55rem;
    color: #d7ac62;
    font-size: 1rem;
    font-weight: 750;
}

.marca span {
    font-weight: 500;
}

h1 {
    margin: 0 0 1.7rem;
    font-size: clamp(1.7rem, 5vw, 2.1rem);
    line-height: 1.15;
}

form, .campo {
    display: grid;
}

form {
    gap: 1.15rem;
}

.campo {
    gap: .35rem;
}

label {
    font-weight: 600;
}

input, button {
    min-height: 2.8rem;
    padding: .65rem .8rem;
    border-radius: .4rem;
    font: inherit;
}

input {
    width: 100%;
    border: 1px solid #827561;
    background: #111110;
    color: inherit;
}

button {
    border: 1px solid transparent;
    background: #d7ac62;
    color: #17130d;
    font-weight: 700;
    cursor: pointer;
}

button:hover {
    background: #e6bf7e;
}

.entrada-opcoes {
    display: grid;
    gap: .55rem;
    margin-top: .75rem;
}

.entrada-secundaria {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.8rem;
    padding: .55rem .7rem;
    border: 1px solid #827561;
    border-radius: .4rem;
    background: transparent;
    color: inherit;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
}

.entrada-secundaria:hover {
    border-color: #d7ac62;
    background: #282219;
}

.entrada-secundaria[hidden] {
    display: none;
}

.entrada-ajuda {
    margin: 1rem 0 0;
    color: #cbc1b2;
    font-size: .9rem;
    line-height: 1.5;
}

:focus-visible {
    outline: 2px solid #f1d39d;
    outline-offset: 2px;
}

.validacao {
    color: #ffb4a9;
    font-size: .9rem;
}

.validacao ul {
    margin: 0;
    padding-inline-start: 1rem;
}

.field-validation-valid, .validation-summary-valid {
    display: none;
}

@media (max-width: 36rem) {
    :root {
        font-size: 125%;
    }

    body {
        padding: .7rem;
        align-items: start;
        line-height: 1.5;
    }

    .cartao {
        margin-block: 1.1rem;
        padding: 1.25rem .85rem;
    }

    h1 {
        margin-bottom: 1.25rem;
        font-size: 1.875rem;
    }

    input, button, .entrada-secundaria {
        min-height: 56px;
        font-size: 1rem;
    }
}
