@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

/* ================= VARIÁVEIS ================= */
/* ================= RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ================= BODY ================= */
body {
    font-family: 'Roboto', sans-serif;
    min-height: 100vh;
    background-color: var(--steel-gray);
    background-image: linear-gradient(to bottom, var(--superficie-3) 0%, var(--fundo-app) 100%);
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


/* ================= CARD ================= */
article {
    background: var(--superficie);
    width: 100%;
    max-width: 420px;
    padding: 40px;
    border-radius: 6px;
    box-shadow: 0 5px 20px color-mix(in srgb, var(--marca-superficie) 15%, transparent);
    text-align: center;
    border-top: 5px solid var(--brand-orange);

    /* CENTRALIZAÇÃO REAL */
    margin: auto;
}


/* ================= TÍTULO ================= */
h1 {
    font-size: 1.8em;
    color: var(--marca-texto);
    margin-bottom: 25px;
    font-weight: 700;
    text-transform: uppercase;
}

/* ================= FORM ================= */
form {
    display: flex;
    flex-direction: column;
}

/* ================= LABEL ================= */
label {
    text-align: left;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--texto-forte);
}

/* ================= INPUT ================= */
input[type="email"] {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
    margin-bottom: 20px;
    background-color: var(--superficie);
    transition: 0.3s;
}

input:focus {
    outline: none;
    border-color: var(--brand-orange);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--destaque) 20%, transparent);
}

/* ================= BOTÃO ================= */
button {
    padding: 14px;
    background: var(--primary-blue);
    color: var(--texto-contraste);
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

button:hover {
    background: var(--brand-orange);
    transform: translateY(-2px);
}

/* ================= LINKS ================= */
.links {
    margin-top: 25px;
    border-top: 1px solid var(--borda);
    padding-top: 20px;
}

.links a {
    color: var(--marca-texto);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.links a:hover {
    text-decoration: underline;
    color: var(--brand-orange);
}

/* ================= FOOTER ================= */
footer {
    width: 100%;
    margin-top: 40px;
    padding: 15px 20px;
    font-size: 13px;
    color: var(--texto);

    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ================= RESPONSIVO ================= */
@media (max-width: 600px) {
    article {
        padding: 25px;
        margin: 0 15px;
    }

    footer {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 412px) {
    article {
        padding: 20px 16px;
        margin: 0 8px;
        width: calc(100% - 16px);
        max-width: 100%;
    }

    h1 {
        font-size: 1.4rem;
        margin-bottom: 18px;
    }

    input[type="email"] {
        padding: 10px;
        font-size: 15px;
    }

    button {
        padding: 12px;
        font-size: 15px;
    }
}
