:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #5f5dee;
    --accent: #f59e0b;
    --light: #f8fafc;
    --dark: #1e293b;
    --gray: #64748b;
    --success: #10b981;
    --error: #ef4444;
    --glass: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Poppins', sans-serif;
}

/* CONTENEDOR CENTRADO PRINCIPAL */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 100vh;
    z-index: 2;
    position: relative;
}

/* CAMBIAR EL FONDO DEL BODY - Esta es la clave */
body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* ELIMINAR o CAMBIAR el gradiente intenso */
    background: #1e3a8a; /* Solo un color sólido en lugar del gradiente */
    overflow: auto;
    padding: 20px;
    position: relative;
    color: var(--dark);
}

.bg-slider {
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    z-index: 0;
    overflow: hidden;
}

.bg-slider .slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    animation: slider 20s infinite;
    filter: brightness(0.6);
    background-color: #f3f2f2;
}

.bg-slider .slide:nth-child(1) {
    background-image: url('../img/img4.png');
    animation-delay: 0s;
}

.bg-slider .slide:nth-child(2) {
    background-image: url('../img/img5.png');
    animation-delay: 4s;
}

.bg-slider .slide:nth-child(3) {
    background-image: url('../img/img6.png');
    animation-delay: 8s;
}

.bg-slider .slide:nth-child(4) {
    background-image: url('../img/img3.png');
    animation-delay: 12s;
}

.bg-slider .slide:nth-child(5) {
    background-image: url('../img/img2.png');
    animation-delay: 16s;
}

.gradient-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
}

@keyframes slider {
    0%, 20%, 100% {
        opacity: 0;
        transform: scale(1.1) rotate(0.5deg);
    }
    5%, 15% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

/* CONTENEDOR DEL LOGIN CENTRADO */
.login-container {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    width: 100%;
    z-index: 2;
    position: relative;
    margin: 0 auto;
}

/* CONTENEDOR PRINCIPAL CENTRADO */
.login-box {
    flex: 1;
    max-width: 480px;
    background: var(--glass);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
    animation: slideUp 0.8s ease-out;
    margin: 0 auto;
}

.login-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-header {
    text-align: center;
    margin-bottom: 40px;
}

.logo-icon {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: transparent; /* Fondo transparente */
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
}

.logo-icon svg {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

.logo-text h1 {
    color: white;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.pro-badge {
    background: var(--accent);
    color: white;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 8px;
    vertical-align: middle;
}

.tagline {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.input-group {
    position: relative;
}

.input-group input {
    width: 100%;
    padding: 18px 20px 18px 50px;
    font-size: 16px;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    border-radius: 12px;
    outline: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.input-group input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.input-group label {
    position: absolute;
    left: 50px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    pointer-events: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-group input:focus ~ label,
.input-group input:valid ~ label {
    top: 10px;
    transform: translateY(0);
    font-size: 12px;
    color: var(--primary);
}

.input-group i {
    font-size: 14px;
}

.focus-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.3s ease;
}

.input-group input:focus ~ .focus-line {
    width: 100%;
}

.password-toggle {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: white;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    user-select: none;
}

.checkbox-container input {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    margin-right: 10px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-container input:checked ~ .checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.checkmark::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 6px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.checkbox-container input:checked ~ .checkmark::after {
    opacity: 1;
}

.forgot-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: var(--primary);
}

.btn-login {
    position: relative;
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    z-index: 2;
}

.btn-icon {
    transition: transform 0.3s ease;
}

.btn-login:hover .btn-icon {
    transform: translateX(5px);
}

.btn-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    transition: transform 0.6s;
}

.btn-login:hover .btn-shine {
    transform: rotate(30deg) translateX(100%);
}

.divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    font-weight: 500;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.divider span {
    padding: 0 20px;
}

.social-login-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.social-main {
    display: flex;
    justify-content: center;
}

.elegant-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    background: white;
    color: #5F6368;
    border: none;
    border-radius: 12px;
    padding: 16px 32px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    min-width: 220px;
    justify-content: center;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.9);
}

.elegant-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    background: white;
}

.elegant-btn:active {
    transform: translateY(-1px);
}

.social-icon-wrapper {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.google-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.elegant-btn:hover .google-icon {
    transform: scale(1.1);
}

.social-text {
    font-weight: 500;
    letter-spacing: 0.3px;
}

.social-hover-effect {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s;
}

.elegant-btn:hover .social-hover-effect {
    left: 100%;
}

.social-secondary {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    min-width: 120px;
    justify-content: center;
}

.twitter-btn {
    background: #1DA1F2;
}

.facebook-btn {
    background: #4267B2;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.social-btn i {
    font-size: 16px;
}

.register-section {
    margin-top: 30px;
    text-align: center;
}

.register-text {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
    font-size: 14px;
}

.highlight {
    color: var(--accent);
    font-weight: 600;
}

.btn-register {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 14px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-register:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.features-sidebar {
    flex: 1;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0 auto;
}

.feature-card {
    background: var(--glass);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    animation: slideUp 0.8s ease-out 0.2s backwards;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 20px;
    color: white;
}

.feature-card h3 {
    color: white;
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: 600;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.5;
}

.floating-particles {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 20s infinite linear;
}

.particle:nth-child(1) {
    width: 60px;
    height: 60px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    width: 40px;
    height: 40px;
    top: 60%;
    left: 80%;
    animation-delay: -5s;
}

.particle:nth-child(3) {
    width: 30px;
    height: 30px;
    top: 80%;
    left: 20%;
    animation-delay: -10s;
}

.particle:nth-child(4) {
    width: 50px;
    height: 50px;
    top: 40%;
    left: 90%;
    animation-delay: -15s;
}

.particle:nth-child(5) {
    width: 25px;
    height: 25px;
    top: 10%;
    left: 70%;
    animation-delay: -7s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    100% {
        transform: translate(100px, 100px) rotate(360deg);
    }
}

.notification-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.notification-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-content i {
    color: var(--success);
    font-size: 20px;
}

@media (max-width: 992px) {
    .login-container {
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .features-sidebar {
        max-width: 480px;
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .feature-card {
        flex: 1;
        min-width: 200px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
        overflow: auto;
    }
    
    .login-container {
        width: 100%;
        max-width: 100%;
    }
    
    .login-box {
        width: 100%;
        padding: 30px 20px;
        margin: 0;
    }
    
    .features-sidebar {
        max-width: 100%;
        flex-direction: column;
    }
    
    .feature-card {
        width: 100%;
        min-width: 100%;
    }
}

@media (max-width: 576px) {
    .login-box {
        padding: 25px 15px;
    }
    
    .features-sidebar {
        flex-direction: column;
    }
    
    .social-secondary {
        flex-direction: column;
        width: 100%;
    }
    
    .social-btn {
        width: 100%;
        min-width: 100%;
    }
    
    .elegant-btn {
        min-width: auto;
        width: 100%;
        padding: 14px 20px;
    }
    
    .logo-text h1 {
        font-size: 24px;
    }
    
    .logo-icon {
        width: 60px;
        height: 60px;
    }
    
    .logo-icon svg {
        width: 30px;
        height: 30px;
    }
}

/* CENTRADO VERTICAL PARA PANTALLAS GRANDES */
@media (min-height: 700px) and (min-width: 992px) {
    .login-wrapper {
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .login-container {
        align-items: center;
    }
}