* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    position: relative;
    margin: 0;
    overflow-x: hidden;
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    background: url("../img/portada9.png");
    background-attachment: fixed;
    background-position: left center;
    background-size: cover;
}

    #particles-js canvas {
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
    }

.login-container {
    display: flex;
    width: 100%;
    max-width: 950px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0, 60, 130, 0.15);
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.login-form-section {
    flex: 1;
    padding: 35px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.logo {
    width: 35%;
    max-width: 180px;
}

.welcome-section {
    margin-bottom: 25px;
    text-align: center;
}

    .welcome-section h1 {
        color: #006FCF;
        margin-bottom: 10px;
        font-size: 32px;
        font-weight: 700;
        letter-spacing: -0.3px;
    }

    .welcome-section p {
        color: #7b8a9e;
        font-size: 14px;
        font-weight: 400;
    }

.form-group {
    margin-bottom: 18px;
    position: relative;
}

    .form-group label {
        display: block;
        margin-bottom: 6px;
        font-weight: 600;
        color: #2c3e50;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.4px;
    }

.input-with-icon {
    position: relative;
}

    .input-with-icon i {
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        color: #0066cc;
        font-size: 16px;
        z-index: 2;
    }

.form-control {
    width: 100%;
    padding: 11px 12px 11px 40px;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: #f9fbfd;
    color: #2c3e50;
    position: relative;
    z-index: 1;
}

    .form-control:focus {
        border-color: #0066cc;
        box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.15);
        outline: none;
        background-color: white;
    }

.submit-btn {
    background: #006FCF;
    color: white;
    border: none;
    padding: 13px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    width: 100%;
    margin-top: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(0, 102, 204, 0.3);
    position: relative;
    overflow: hidden;
}

    .submit-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
        transition: left 0.5s;
    }

    .submit-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0, 102, 204, 0.4);
    }

        .submit-btn:hover::before {
            left: 100%;
        }

    .submit-btn:active {
        transform: translateY(-1px);
    }

.image-section {
    flex: 1;
    background: #006FCF;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    position: relative;
    overflow: hidden;
}

    .image-section::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -50%;
        width: 100%;
        height: 200%;
        background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
        transform: rotate(30deg);
    }

.image-3d-container {
    position: relative;
    width: 100%;
    max-width: 320px;
    perspective: 1000px;
    margin-bottom: 20px;
}

.image-3d {
    width: 100%;
    height: auto;
    border-radius: 12px;
    transform: rotateY(-5deg) rotateX(5deg);
    box-shadow: 25px 25px 45px rgba(0, 40, 100, 0.4), -12px -12px 25px rgba(255, 255, 255, 0.2), inset 4px 4px 8px rgba(255, 255, 255, 0.1), inset -4px -4px 8px rgba(0, 40, 100, 0.2);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    position: relative;
    z-index: 2;
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    padding: 8px;
}

    .image-3d::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%, rgba(0,0,0,0.05) 100%);
        border-radius: 12px;
        z-index: 1;
    }

    .image-3d:hover {
        transform: rotateY(0deg) rotateX(0deg) translateY(-8px);
        box-shadow: 20px 20px 40px rgba(0, 40, 100, 0.5), -8px -8px 16px rgba(255, 255, 255, 0.3), inset 4px 4px 8px rgba(255, 255, 255, 0.2), inset -4px -4px 8px rgba(0, 40, 100, 0.3);
    }

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.floating-element {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    background: #FDB92D;
    border-radius: 50%;
    animation: float 15s infinite linear;
}

    .floating-element:nth-child(1) {
        width: 60px;
        height: 60px;
        top: 10%;
        left: 10%;
        animation-delay: 0s;
    }

    .floating-element:nth-child(2) {
        width: 30px;
        height: 30px;
        top: 70%;
        left: 20%;
        animation-delay: -5s;
    }

    .floating-element:nth-child(3) {
        width: 45px;
        height: 45px;
        top: 40%;
        left: 80%;
        animation-delay: -10s;
    }

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(25px, -40px) rotate(120deg);
    }

    66% {
        transform: translate(-15px, 15px) rotate(240deg);
    }

    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

.additional-info {
    margin-top: 20px;
    text-align: center;
    color: #7b8a9e;
    font-size: 13px;
}

    .additional-info a {
        color: #0066cc;
        text-decoration: none;
        transition: color 0.3s;
    }

        .additional-info a:hover {
            color: #004c99;
            text-decoration: underline;
        }

/* Estilos para la glass-card */
.glass-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 14px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    text-align: center;
    margin-top: 20px;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 320px;
    z-index: 2;
}

    .glass-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
        transition: left 0.6s;
    }

    .glass-card:hover::before {
        left: 100%;
    }

    .glass-card:hover {
        transform: translateY(-4px);
        background: rgba(255, 255, 255, 0.2);
        box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
    }

.secondary-logo {
    height: 45px;
    margin-bottom: 15px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.glass-card:hover .secondary-logo {
    transform: scale(1.05);
}

.glass-card h4 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    font-weight: 600;
    color: white;
}

.glass-card p {
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.4;
    color: white;
}

/* Estilos para el checkbox */
.form-check {
    margin-bottom: 15px !important;
}

.form-check-input {
    margin-right: 8px;
    transform: scale(0.9);
}

.form-check-label {
    font-size: 13px;
    color: #2c3e50;
}

/* Alertas más compactas */
.alert {
    padding: 10px 15px;
    margin-bottom: 20px;
    font-size: 13px;
    border-radius: 8px;
}

@media (max-width: 900px) {
    .login-container {
        flex-direction: column;
        max-width: 450px;
    }

    .image-section {
        order: -1;
        padding: 25px;
        min-height: auto;
    }

    .login-form-section {
        padding: 30px 25px;
    }

    .image-3d {
        max-width: 250px;
    }

    .glass-card {
        max-width: 280px;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 8px;
    }

    .login-container {
        border-radius: 12px;
    }

    .login-form-section {
        padding: 25px 20px;
    }

    .welcome-section h1 {
        font-size: 24px;
    }

    .welcome-section p {
        font-size: 13px;
    }

    .image-section {
        padding: 20px;
        min-height: auto;
    }

    .glass-card {
        padding: 18px;
        margin-top: 15px;
    }

        .glass-card h4 {
            font-size: 1.1rem;
        }

        .glass-card p {
            font-size: 0.85rem;
        }

    .logo {
        width: 40%;
    }
}

@media (max-width: 360px) {
    .login-form-section {
        padding: 20px 15px;
    }
    
    .welcome-section h1 {
        font-size: 22px;
    }
    
    .form-control {
        padding: 10px 10px 10px 35px;
        font-size: 13px;
    }
    
    .input-with-icon i {
        font-size: 14px;
        left: 10px;
    }
}