/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box !important;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #050505;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    position: relative;
    overflow: hidden; /* Para esconder o overflow da animação */
}

/* Estilo da logo */
.logo {
    position: relative;
    z-index: 2;
    margin-bottom: 20px;
    text-align: center;
}

.logo img {
    max-width: 240px;
    height: auto;
}

/* Estilos do container de login */
.login-container {
    background-color: #0c0c0c;
    padding: 20px;
    margin: 18px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 1;
}

h1 {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #ffffff;
}

/* Inputs e botões */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"] {
    width: 100%;
    height: 54px;
    border: 1px solid #2f303b;
    border-radius: 20px;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    padding: 0 12px;
    margin-bottom: 15px;
    background-color: #070708;
    color: #ffffff;
}

input:focus {
    border-color: #fcc100;
    outline: none;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

button {
    background-color: #fcc100;
    color: #000000;
    padding: 12px 20px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 18px;
    width: 100%;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 20px; /* Espaçamento maior em relação aos inputs */
}

button:hover {
    background-color: #e6b800;
}

button:active {
    background-color: #cc9900;
    transform: scale(0.98);
}

/* Espaçamento adicional para o texto abaixo do botão */
.back-to-login {
    margin-top: 20px; /* Adicionado espaço maior entre o botão e o texto */
    font-size: 14px;
    color: #ffffff;
}

.back-to-login a {
    color: #fcc100; /* Amarelo */
    font-weight: bold;
    text-decoration: none;
}

.back-to-login a:hover {
    text-decoration: underline;
}

/* Campo de senha */
.password-container {
    position: relative;
    width: 100%;
    height: 54px; /* Mantém o tamanho fixo do container */
}

.password-container input[type="password"] {
    padding-right: 40px; /* Espaço reservado para o ícone */
    height: 100%; /* Alinha a altura do campo ao container */
    box-sizing: border-box; /* Inclui padding e borda no tamanho */
}

.toggle-password {
    position: absolute;
    top: 50%; /* Centraliza verticalmente */
    right: 12px; /* Mantém distância fixa da borda direita */
    transform: translateY(-50%);
    cursor: pointer;
    color: #5e6786;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-password i {
    font-size: 18px;
}

/* Mensagem de erro */
.password-container .error-message {
    position: absolute;
    bottom: -20px; /* Espaço para exibir abaixo do campo */
    left: 0;
    color: #ff4d4d;
    font-size: 9.6px;
    display: none; /* Escondida por padrão */
}

.password-container.error .error-message {
    display: block; /* Exibe a mensagem de erro */
}

/* Termos e condições */
.terms-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin-top: 20px; /* Adicionado espaçamento maior em relação aos inputs */
    padding-left: 5px;
}

.terms-label {
    font-size: 14px;
    color: #ffffff;
    line-height: 1.5;
}

.terms-label a {
    color: #fcc100; /* Amarelo para o link */
    font-weight: bold;
    text-decoration: none;
}

.terms-label a:hover {
    text-decoration: underline;
}

.switch {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 20px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 50px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 12px;
    width: 12px;
    border-radius: 50px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
}

input:checked + .slider {
    background-color: #1cdf4d; /* Fundo verde */
}

input:checked + .slider:before {
    transform: translateX(14px);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #222;
    padding: 20px;
    margin: 15% auto;
    border-radius: 10px;
    width: 80%;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 10px;
    top: 10px;
}

.close:hover,
.close:focus {
    color: #fcc100;
    text-decoration: none;
    cursor: pointer;
}

/* Animação de fundo */
.lines {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    margin: auto;
    width: 90vw;
    z-index: 0;
}

.line {
    position: absolute;
    width: 1px;
    height: 100%;
    top: 0;
    left: 50%;
    background: #13100b;
    overflow: hidden;
}

.line::after {
    content: '';
    display: block;
    position: absolute;
    height: 15vh;
    width: 100%;
    top: -50%;
    left: 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #fcc100 75%, #fc9700 100%);
    animation: drop 7s 0s infinite;
    animation-fill-mode: forwards;
    animation-timing-function: cubic-bezier(0.4, 0.26, 0, 0.97);
}

.line:nth-child(1) {
    margin-left: -25%;
}

.line:nth-child(1)::after {
    animation-delay: 2s;
}

.line:nth-child(3) {
    margin-left: 25%;
}

.line:nth-child(3)::after {
    animation-delay: 2.5s;
}

@keyframes drop {
    0% {
        top: -50%;
    }
    100% {
        top: 110%;
    }
}
