/* ================================
   style.css - m�dulo de login PulsePair
   Coment�rios explicativos inclusos
================================ */

/* Reset b�sico e fonte padr�o */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

/* Fundo com imagem + overlay escuro */
body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: url('img/Fundo.login.png') no-repeat center center / cover;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    z-index: -1;
}

/* Container do formul�rio */
.form-container {
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.6);
    padding: 40px;
    border-radius: 12px;
    color: #fff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    max-width: 400px;
    width: 90%;
    text-align: center;
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* T�tulos */
h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    color: #ff004c;
    margin-bottom: 10px;
    text-transform: uppercase;
}

h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    color: #fff;
    margin-bottom: 10px;
}

.slogan {
    font-size: 1rem;
    color: #ddd;
    margin-bottom: 20px;
}

/* Mensagens */
.alerta {
    font-size: 0.9rem;
    margin-bottom: 20px;
    padding: 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #ff004c;
}

    .alerta.success {
        color: #42b72a;
    }

/* Campos de entrada */
.input-container {
    position: relative;
    margin: 15px 0;
}

    .input-container i:not(.toggle-password) {
        position: absolute;
        top: 50%;
        left: 12px;
        transform: translateY(-50%);
        color: #ff004c;
        font-size: 1.1rem;
        pointer-events: none;
    }

    .input-container input {
        width: 100%;
        padding: 12px 40px 12px 40px; /* espa�o � esquerda e � direita */
        border: 1px solid #ff004c;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.1);
        color: #fff;
        font-size: 1rem;
        transition: border-color 0.3s, box-shadow 0.3s;
    }

        .input-container input:focus {
            border-color: #1877f2;
            box-shadow: 0 0 10px rgba(24, 119, 242, 0.5);
        }

/* �cone de visibilidade da senha */
.toggle-password {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    color: #ccc;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 2;
    transition: transform 0.2s;
}

    .toggle-password:hover {
        transform: translateY(-50%) scale(1.1);
    }

/* �cone do calend�rio no campo de data */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
}

/* Bot�o de a��o */
button {
    width: 100%;
    padding: 12px;
    background: #1877f2;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.3s;
}

    button:hover {
        background: #145db2;
        transform: scale(1.05);
    }

/* Navega��o */
.nav-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

    .nav-buttons a {
        color: #42b72a;
        text-decoration: none;
        font-weight: bold;
    }

        .nav-buttons a:hover {
            text-decoration: underline;
        }

/* Responsividade */
@media (max-width: 600px) {
    .form-container {
        width: 95%;
        padding: 20px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }
}
