/* Estilos Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: url('logimg20.PNG') no-repeat center center fixed;
    background-size: cover;
    overflow: hidden;
}

/* Wrapper para el formulario */
.wrapper {
    width: 450px;
    background: rgba(0, 0, 0, 0.7); /* Fondo oscuro */
    border-radius: 20px;
    padding: 40px 50px;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

/* Título del formulario */
.wrapper h1 {
    color: #ffffff;
    font-size: 32px;
    text-align: center;
    margin-bottom: 20px;
}

/* Contenedor para los inputs */
.input-box {
    position: relative;
    width: 100%;
    margin: 15px 0;
}

/* Estilo de los campos de texto (input) y select */
.input-box input,
.input-box select {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    color: #333;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

/* Placeholder */
.input-box input::placeholder,
.input-box select::placeholder {
    color: #ccc;
}

/* Enfoque de los inputs (cuando están activos) */
.input-box input:focus,
.input-box select:focus {
    border-color: #3498db;
    outline: none;
}

/* Enlaces de la pregunta y respuesta */
.input-box label {
    color: #fff;
    margin-bottom: 10px;
}

/* Iconos dentro de los inputs */
.input-box i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #ffffff;
}

/* Contenedor de la contraseña con íconos de visibilidad */
.password-container {
    position: relative;
}

#toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #ffffff;
    cursor: pointer;
}

/* Botón de acción */
.btn {
    width: 100%;
    padding: 15px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
    margin-top: 20px;
}

.btn:hover {
    background-color: #2980b9;
}

/* Enlaces adicionales */
.yatengocuenta {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
}

.yatengocuenta a {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

.yatengocuenta a:hover {
    text-decoration: underline;
}

/* Estilos para mensajes de error y éxito */
.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    width: 80%;
    max-width: 400px;
    margin: 20px auto;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    width: 80%;
    max-width: 400px;
    margin: 20px auto;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Diseño Responsive para dispositivos móviles */
@media (max-width: 600px) {
    .wrapper {
        width: 90%;
        padding: 20px 30px;
    }

    .input-box input,
    .input-box select {
        padding: 12px;
        font-size: 14px;
    }

    .btn {
        font-size: 14px;
        padding: 12px;
    }
}
