@import url('https://fonts.googleapis.com/css2?family=B612+Mono:ital,wght@0,400;0,700;1,400;1,700&family=Satisfy&display=swap');

/* Reset e estilos gerais */
* {
    -webkit-tap-highlight-color: transparent;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    -webkit-focus-ring-color: rgba(0, 0, 0, 0);
    outline: none;

    /* Desativa o zoom */
    touch-action: manipulation;
    touch-action: pan-x pan-y; /* Para desativar o zoom em dispositivos móveis */
    -ms-content-zooming: none; /* Desativa o zoom no IE */
    -ms-touch-action: none; /* Desativa o zoom no IE */
    -ms-scroll-limit: none; /* Desativa os limites de rolagem no IE */
    /* Removido overflow: hidden para não cortar as bordas do botão */
}

input, textarea, select {
  font-size: 16px; /* Evita o zoom automático no iPhone */
  outline: none; /* Remove a borda de foco padrão */
}

button {
  font-size: 16px; /* Garante consistência para botões também */
}

/* Caso você precise reduzir o tamanho visual do texto, pode utilizar transform */
input, textarea, select, button {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #ffaaff;
}

.container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    max-width: 230px;
    width: 90%;
    animation: fadeIn 0.5s ease-in-out;
}

form {
    width: 100%;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translate(-50%, -60%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

h2 {
    margin-top: -2px;
    font-weight: lighter;
    text-align: center;
    font-family: "Satisfy", cursive;
    font-size: 2.5em;
    color: rgb(255, 159, 215);
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
    animation: pulseAnimation 2s infinite alternate;
}

@keyframes pulseAnimation {
    0% {
        text-shadow: 0 0 10px rgba(255, 0, 208, 0.5);
    }
    100% {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.9);
    }
}

h2:hover {
    color: rgb(255, 159, 215);
}

.textbox,
input[type="submit"],
input[type="button"] {
    width: 92%;
    padding: 10px;
    margin-bottom: 20px;
    background: none;
    border: none;
    border-bottom: 1px solid #000000;
    border-radius: 0;
    box-shadow: none;
    outline: none;
    color: inherit;
}

input[type="submit"],
input[type="button"] {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    background: #ffb5ef;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 15px;
    box-shadow: none;
    margin-top: 26px;
    text-shadow: none;
    outline: none;
    font-weight: bolder;
    width: 230px; /* Defina a largura desejada */
    transition: 0.4s;
    cursor: pointer;
}

.textbox::placeholder {
    font-size: 15px;
}

.input-submit:hover {
    background-color: #ffb5ef;
    transition: 0.4s;
}

.input-submit:active {
    background-color: #ffa4eb;
    transition: background-color 0.4s;
}

input[type="submit"]:hover {
    background-color: #ffb5ef;
    transition: 0.4s;
}
input[type="submit"]:active {
    background-color: #ffa4eb; /* Cor de fundo quando clicado */
    transition: background-color 0.4s; /* Transição suave para a mudança de cor */
}

/* Estilos para a classe .lembrar */
.lembrar {
    margin-bottom: 20px;
    color: #666;
}
.lembrar input[type="checkbox"] {
    margin-right: 10px;
    transform: translateY(2px);
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="password"]::placeholder {
    font-size: 14px; /* Tamanho do texto do placeholder */
}

.footer {
    text-align: center;
    color: #666;
    font-size: 14px;
}

.forgot {
    text-decoration: none;
    margin-left: 30px;
    width: 100%;
    color: #666;
}
.forgot:focus, :hover, :active {
    color: #000000;
}

/* Estilo do Fundo Escurecido (modal de cookies) */
.modal {
    display: none; /* Oculta o modal por padrão */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    animation: fadeIn 0.3s ease-out; /* Animação de entrada */
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    border-radius: 5px;
    max-width: 90%;
    text-align: center;
    position: relative;
}

/* Estilo para telas menores */
@media screen and (min-width: 500px) {
    .modal-content {
        max-width: 60%;
    }
}
@media screen and (min-width: 800px) {
    .modal-content {
        max-width: 40%;
    }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}
.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
/* Estilo para telas menores */
@media screen and (max-width: 600px) {
    .modal-content {
        margin: 10% auto;
        padding: 10px;
    }
}

/* Animação de entrada do modal */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
/* Animação de saída do modal */
@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Botão "Recomeçar" */
.start-over {
    /* Removido o margin-top negativo */
    margin-top: 0 !important;
    background-color: transparent !important;
    border: 2px solid #ffacd8 !important;
    color: #ffacd8 !important;
    font-weight: bolder;
    /* Para evitar que alguns navegadores (Safari, iOS) removam bordas em inputs */
    border-radius: 4px !important; /* Se quiser bordas levemente arredondadas */
}

.start-over:hover {
    background-color: #f7caee !important;
    border: 2px solid #ffacd8 !important;
    font-weight: bolder;
    color: white !important;
}

/* Mensagem de erro */
.error {
    color: red;
    font-size: 14px;
    margin-bottom: 10px;
}

/* Animação fade-in do container */
.fade-in {
    opacity: 0;
    animation: fadeInContainer 0.5s ease-in-out forwards;
}

@keyframes fadeInContainer {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

a {
    color: #000000;
    text-decoration: none;
    display: block;
    margin-top: 10px;
    transition: color 0.3s ease;
    font-size: 15px;
}
a:hover {
    color: #404040;
}

.form-wrapper {
    width: 100%;
    text-align: center;
    margin-top: 20px;
}
