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

:root {
    --main-color: #013B49;
    --secondary-color: #FEBE07;
    --title-size: 2.4rem;
    --paragraph-size: 1.6rem;
    --small-paragraph-size: 1.2rem;
}

body, html {
    height: 100%;
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
    background: #02050a;
}

body {
    min-height: 100vh;
    background: white; /* Fondo base total */
    background-image: url('https://cei-dev.iseu.mx/assets/img/mattp');
    display: flex;
    justify-content: center;
    align-items: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.body-wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
    justify-content: space-between; 
    align-items: center;
    padding: 0 10%; 
    gap: 2rem;
    max-width: 1600px; 
    margin: 0 auto;
}

.logo {
    flex: 1;
    display: flex;
    justify-content: flex-start; 
}

.logo svg {
    max-width: 450px; 
    height: auto;
}

.logo svg path {
    opacity: 0;
    transform: translateX(-100px);
    animation: slideLeft 0.8s ease forwards;
}

.logo svg path:nth-child(even) {
    transform: translateX(100px);
    animation: slideRight 0.8s ease forwards;
}

.logo svg path:nth-child(1) { animation-delay: 0.1s; }
.logo svg path:nth-child(2) { animation-delay: 0.2s; }
.logo svg path:nth-child(3) { animation-delay: 0.3s; }
.logo svg path:nth-child(4) { animation-delay: 0.4s; }
.logo svg path:nth-child(5) { animation-delay: 0.5s; }
.logo svg path:nth-child(6) { animation-delay: 0.6s; }
.logo svg path:nth-child(7) { animation-delay: 0.7s; }
.logo svg path:nth-child(8) { animation-delay: 0.8s; }
.logo svg path:nth-child(9) { animation-delay: 0.9s; }
.logo svg path:nth-child(10) { animation-delay: 1s; }


form {
    background: var(--main-color);
    backdrop-filter: blur(8px) saturate(130%);
    -webkit-backdrop-filter: blur(8px) saturate(130%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 70px 50px;
    border-radius: 35px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    text-align: center;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    animation: floatUp 1s ease forwards;
    opacity: 0;
    animation-delay: 1.2s;
    margin-left: auto; 
}

form:hover {
    background: rgba(1, 86, 107, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.4);
    transform: perspective(1000px) rotateX(2deg) rotateY(-2deg) translateY(-5px);
}

form h1 {
    color: #fff;
    font-size: calc(var(--title-size) + 0.8rem);
    margin-bottom: 1rem;
    text-align: center;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    font-weight: 900;
}

form > p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin-bottom: 50px;
    opacity: 1;
    text-align: center;
}

form label {
    display: block;
    color: #fff;
    text-align: left;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 12px;
    margin-bottom: 5px;
}

form input{
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    background-color: white;
    color: #000000;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    outline: none;
    transition: all 0.3s;
}

form input:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: #000000;
}
/* --- INPUTS --- */
.inputs-wrapper {
    text-align: left;
}

.input-wrapper {
    margin-bottom: 25px;
    text-align: left;
}

.input-wrapper label {
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: block;
    letter-spacing: 1px;
}

.input-wrapper input,
form input {
    width: 100%;
    background: white;
    border-radius: 14px;
    padding: 18px 22px;
    color: black;
    font-size: 15px;
    transition: all 0.3s ease;
    margin-bottom: 0;
    outline: none;
}

.input-wrapper input:focus,
form input:focus {
    box-shadow: 0 0 20px rgba(173, 216, 230, 0.3);
}

.required {
    font-size: var(--small-paragraph-size);
    margin-top: 8px;
    padding-left: 0.5rem;
    color: #ff6b6b;
    opacity: 0.9;
}

/* --- BOTON --- */
.cei-button {
    width: 100%;
    background: #fff;
    color: #000;
    border: none;
    padding: 20px;
    border-radius: 14px;
    font-weight: 900;
    cursor: pointer;
    margin-top: 15px;
    transition: 0.4s;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

.cei-button:hover {
    background: #add8e6;
    box-shadow: 0 0 35px rgba(173, 216, 230, 0.6);
    transform: translateY(-3px);
}

/* --- FOOTER --- */
footer {
    background: var(--main-color);
    position: fixed;
    bottom: 0px;
    left: 0px;
    right: 0px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    /* letter-spacing: 1px; */
    z-index: 999;
    opacity: 0;
    transform: translateY(30px);
    animation: footerEnter 1s ease forwards;
    animation-delay: 1.5s;
    /* background: transparent; */
    border: none;
    padding: 0;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 15px;
}

footer .copyright {
    text-align: center;
    flex: 1;
}

footer .copyright p {
    margin: 0.3rem 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
}

footer a {
    color: #add8e6;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

footer a:hover {
    color: #FFD700;
    text-shadow: 0 0 10px #FFD700;
}

footer button {
    border: none;
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
}

footer button img {
    height: 5rem;
    width: auto;
    display: block;
}

.logo-iseu {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo-iseu img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
}

/* --- ANIMACIONES --- */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes slideLeft {
    0% {
        opacity: 0;
        transform: translateX(-150px) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes slideRight {
    0% {
        opacity: 0;
        transform: translateX(150px) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes floatUp {
    0% {
        opacity: 0;
        transform: translateY(80px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .body-wrapper {
        gap: 4rem;
        padding: 3rem;
    }

    .logo svg {
        max-width: 300px;
    }

    form {
        flex: none;
        width: 100%;
        max-width: 40rem;
        padding: 50px 35px;
    }

    footer {
        flex-direction: row;
        text-align: center;
        gap: 1rem;
    }

    .logo-iseu {
        margin: 0 0 0.5rem 0;
    }
}

@media (max-width: 768px) {
    .body-wrapper {
        gap: 3rem;
        padding: 2rem;
    }

    .logo{
        display: none;
    }

    .logo svg {
        max-width: 260px;
    }

    form {
        max-width: 380px;
        padding: 40px 25px;
    }

    footer {
        font-size: 10px;
        flex-direction: row;
    }

    footer .copyright p {
        font-size: 10px;
    }

    .logo-iseu img {
        width: 45px;
        height: 45px;
    }

    footer button img {
        height: 4rem;
    }
}

