@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;500;700&display=swap');

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

body {
    height: 100vh;
    font-family: 'Poppins', sans-serif;

    background: url('https://i.pinimg.com/originals/9e/47/fe/9e47fefa5a687335cf906882cecfe779.gif') no-repeat center center fixed;
    background-size: cover;

    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    background: white;
    padding: 40px 30px; 
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
    animation: fadeIn 1s ease forwards;
}

.form {
    display: flex;
    flex-direction: column;
}

.form h2 {
    text-align: center;
    margin-bottom: 15px;
    color: #000000;
}

/* Logo */
.logo {
    height: 80px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo img {
    max-height: 70px;
    max-width: 100%;
    object-fit: contain;
}

.form input {
    display: block;
    width: 100%;
    padding: 12px 15px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 10px;
    transition: 0.3s ease;
    font-size: 16px;
}

.form input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 5px rgba(102, 126, 234, 0.6);
}

.btn {
    width: 100%;
    padding: 12px;
    background-color: #110957;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    margin-top: 15px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px #110957;
}

.btn.clicked {
    animation: pulse 0.6s ease;
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
    100% {
        transform: scale(1);
    }
}

/* 📱 Versión móvil */
@media (max-width: 600px) {
    .container {
        margin: 20px;
        padding: 30px 20px;
    }

    .form input {
        padding: 10px 12px;
        font-size: 15px;
    }

    .btn {
        font-size: 16px;
        padding: 10px;
    }
}
