* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

main {
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    margin-left: auto;
    margin-right: auto;
}

/* Remova o aninhamento e coloque as regras fora de main */
.title-login {
    margin-bottom: 40px;
}

input[type="email"],
input[type="text"],
input[type="number"],
input[type="date"],
input[type="password"] {
    margin-bottom: 25px;
}

.box-login {
    padding: 32px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    max-width: 400px;
    width: 100%;
    height: 100%;
    max-height: 500px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    margin-bottom: 25px;
}

.box-login h1 {
    font-size: 24px;
    text-align: center;
    margin-bottom: 40px;
    background-color: var(--white);
}

.box-login form {
    display: flex;
    flex-direction: column;
    background-color: var(--white);
    gap: .5rem;
    margin-bottom: 25px;
}

.box-login form label {
    background-color: var(--white);
}

.box-login a {
    color: var(--btn-color);
}

.footer-login {
    font-size: 12px;
    text-align: center;
}

/* Adicione regras para o modal se necessário */
.window-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.window-modal .modal {
    background: #fff;
    border-radius: 10px;
    max-width: 400px;
    width: 100%;
    padding: 24px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}

.window-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.window-modal .modal-header h3 {
    margin: 0;
    font-size: 20px;
}

.window-modal .modal-content form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.window-modal input[type="email"] {
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.window-modal button[type="submit"] {
    background: var(--btn-color);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 12px;
}

.footer-login a {
  text-decoration: underline;
}

@media screen and (max-width: 470px) {
    input,
    select,
    textarea {
        font-size: 16px !important; /* evita o zoom no iOS Safari */
    }

    main {
        width: 100% !important;
        height: 100% !important;
        margin-top: 30% !important;
        font-size: 16px !important;
    }

    .box-login {
        width: 95%;
        border-radius: 12px;
    }

    .window-modal .modal {
        width: 90%;
    }

    .title-login {
        img {
            width: 130px;
            height: auto;
        }
    }
}
