﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: radial-gradient(circle at top left, #0f172a, #000);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
}

/* ========================= */
/* CARD PRINCIPAL */
/* ========================= */

.card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 60px 80px; /* separación lateral balanceada */
    width: 1100px;
    max-width: 95%;
    display: flex;
    align-items: center;
    justify-content: center; /* centro real */
    gap: 80px; /* controla separación visual */

    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.8s ease-in-out;
}

/* ========================= */
/* SECCIONES LATERALES */
/* ========================= */

.left,
.right {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
}

    /* ========================= */
    /* LOGO IZQUIERDA */
    /* ========================= */

    .left img {
        width: 280px;
        max-width: 100%;
        opacity: 0.95;
        filter: drop-shadow(0 0 20px rgba(34, 197, 94, 0.6));
    }

    /* ========================= */
    /* COHETE DERECHA */
    /* ========================= */

    .right img {
        width: 200px;
        max-width: 100%;
        animation: float 4s ease-in-out infinite;
    }

/* ========================= */
/* CONTENIDO CENTRAL */
/* ========================= */

.center {
    flex: 1;
    text-align: center;
}

    .center h1 {
        font-family: 'Orbitron', sans-serif;
        font-size: 38px;
        margin-bottom: 15px;
        letter-spacing: 2px;
    }

    .center p {
        font-size: 18px;
        opacity: 0.7;
        margin-bottom: 30px;
    }

/* ========================= */
/* FORMULARIO */
/* ========================= */

form {
    display: flex;
    gap: 15px;
    justify-content: center;
}

input[type="email"] {
    width: 300px;
    padding: 14px;
    border-radius: 12px;
    border: none;
    outline: none;
    font-size: 15px;
}

button {
    padding: 14px 25px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    transition: 0.3s ease;
}

    button:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 25px rgba(34, 197, 94, 0.4);
    }

/* ========================= */
/* MENSAJES */
/* ========================= */

.success {
    margin-top: 15px;
    color: #22c55e;
}

.error {
    margin-top: 15px;
    color: #f87171;
}

/* ========================= */
/* ANIMACIONES */
/* ========================= */

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================= */
/* RESPONSIVE */
/* ========================= */

@media(max-width: 900px) {

    .card {
        flex-direction: column;
        text-align: center;
        padding: 50px 40px;
        gap: 40px;
    }

    form {
        flex-direction: column;
    }

    input[type="email"],
    button {
        width: 100%;
    }

    .left img {
        width: 220px;
    }

    .right img {
        width: 160px;
    }
}
