﻿
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;400;500;600;700;800&display=swap');

*, *::before, *::after {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body, input {
    font-family: "Poppins", sans-serif;
}

main {
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    background: linear-gradient(135deg, #E5E7E9 0%, #D6DBDF 100%);
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.box {
    position: relative;
    width: 100%;
    max-width: 1020px;
    height: 640px;
    background-color: white;
    border-radius: 3.3rem;
    box-shadow: 0 60px 40px -30px rgba(0, 0, 0, 0.27);
    overflow: hidden;
}

.inner-box {
    position: absolute;
    width: calc(100% - 4.1rem);
    height: calc(100% - 4.1rem);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
}

.forms-wrap {
    position: absolute;
    height: 100%;
    width: 45%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    transition: all 0.6s ease;
}

.carousel {
    position: absolute;
    display: flex;
    height: 100%;
    width: 55%;
    left: 45%;
    background: linear-gradient(135deg, #2E4053 0%, #566573 100%);
    border-radius: 2rem;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 600;
    font-size: 1.5rem;
    color: white;
    padding: 2rem;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.1);
    transition: all 0.6s ease;
    overflow: hidden;
}

.carousel-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.carousel-title {
    position: absolute;
    top: 2rem;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 10;
    padding: 0 2rem;
}

.carousel-images {
    position: relative;
    width: 100%;
    height: 70%;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.carousel-item {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    background-size: cover;
    background-position: center;
    border-radius: 1rem;
}

    .carousel-item.active {
        opacity: 1;
    }

.carousel-nav {
    position: absolute;
    bottom: 2rem;
    display: flex;
    gap: 0.8rem;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

    .carousel-dot.active {
        background-color: white;
        transform: scale(1.2);
    }

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

    .carousel-control:hover {
        background-color: rgba(0, 0, 0, 0.5);
    }

    .carousel-control.prev {
        left: 1rem;
    }

    .carousel-control.next {
        right: 1rem;
    }


form {
    max-width: 320px;
    width: 100%;
    margin: 0 auto;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1rem;
}

    .logo img {
        width: 70px;
        height: 70px;
        border-radius: 50%;
        object-fit: cover;
        margin-bottom: 1rem;
        border: 3px solid #f8f9fa;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    .logo h4 {
        font-size: 1.2rem;
        letter-spacing: -0.5px;
        color: #151111;
        text-transform: uppercase;
        font-weight: 600;
        text-align: center;
    }

.heading {
    text-align: center;
    margin-bottom: 1rem;
}

    .heading h2 {
        font-size: 2.1rem;
        font-weight: 600;
        color: #151111;
        margin-bottom: 0.5rem;
    }

    .heading p {
        color: #888;
        font-size: 0.9rem;
    }

.actual-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-wrap {
    position: relative;
    height: 50px;
    margin-bottom: 0.5rem;
}

.input-field {
    position: absolute;
    width: 100%;
    height: 100%;
    background: none;
    border: none;
    outline: none;
    border-bottom: 1px solid #bbb;
    padding: 0;
    font-size: 0.95rem;
    color: #151111;
    transition: 0.4s;
    z-index: 1;
}

label {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.95rem;
    color: #bbb;
    pointer-events: none;
    transition: 0.4s;
    z-index: 0;
}

.input-field.active {
    border-bottom-color: #3498DB;
    box-shadow: 0 1px 0 0 #3498DB;
}

    .input-field.active + label {
        font-size: 0.75rem;
        top: -5px;
        color: #3498DB;
    }

.sign-btn {
    display: inline-block;
    width: 100%;
    height: 45px;
    background-color: #151111;
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 0.8rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

    .sign-btn:hover {
        background-color: #3498DB;
        transform: translateY(-2px);
        box-shadow: 0 6px 15px rgba(52, 152, 219, 0.3);
    }

    .sign-btn:active {
        transform: translateY(0);
    }

.text-danger {
    color: #e74c3c !important;
    font-size: 0.8rem;
    margin-top: 5px;
    display: block;
}

#message_error {
    text-align: center;
    padding: 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #bbb;
    z-index: 2;
}

    .password-toggle:hover {
        color: #3498DB;
    }

@media (max-width: 850px) {
    .box {
        height: auto;
        max-width: 550px;
        overflow: hidden;
    }

    .inner-box {
        position: static;
        transform: none;
        width: revert;
        height: revert;
        padding: 2rem;
        flex-direction: column;
    }

    .forms-wrap {
        position: revert;
        width: 100%;
        height: auto;
        padding: 1rem;
    }

    .carousel {
        display: none;
    }

    .heading {
        margin-bottom: 30px;
    }

    #message_error {
        position: relative;
        margin-top: 20px;
    }

    .input-wrap {
        margin-bottom: 1.5rem;
    }
}

/* Animaciones adicionales */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo, .heading, .actual-form {
    animation: fadeIn 0.6s ease forwards;
}

.logo {
    animation-delay: 0.1s;
}

.heading {
    animation-delay: 0.2s;
}

.actual-form {
    animation-delay: 0.3s;
}

.error-label {
    opacity: 0.9;
    color: white !important;
    padding: 8px;
    border-radius: 5px;
    display: none;
}

.carousel-item.item1 {
    background-image: url('../Img/C3.png');
}

.carousel-item.item2 {
    background-image: url('../Img/C4.png');
}

.carousel-item.item3 {
    background-image: url('../Img/C5.png');
}

.carousel-item.item4 {
    background-image: url('../Img/C6.png');
}

.carousel-item.item5 {
    background-image: url('../Img/C7.png');
}
