:root {
    --primary-color: #6a0dad;      /* Púrpura intenso */
    --accent-color: #9b59b6;       /* Lila brillante */
    --text-light: #7e8a97;         /* Gris violeta claro */
    --gradient-start: #6a0dad;     /* Inicio degradado púrpura */
    --gradient-end: #9b59b6;       /* Fin degradado lila */
    --soft-bg: #f9f5ff;            /* Fondo lavanda muy suave */
    --card-shadow: 0 20px 25px -5px rgba(106, 13, 173, 0.15),
                   0 10px 10px -5px rgba(106, 13, 173, 0.1);
}


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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
}

/* Elementos decorativos de fondo */
body::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -150px;
    right: -150px;
    z-index: 1;
}

body::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    bottom: -100px;
    left: -100px;
    z-index: 1;
}

.login-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 480px;
    padding: 20px;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 50px 40px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.login-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 32px 64px -12px rgba(0, 0, 0, 0.25);
}

.logo-section {
    text-align: center;
    margin-bottom: 40px;
}

.logo-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 10px 25px rgba(44, 95, 95, 0.3);
    transition: all 0.3s ease;
    padding: 50px;
}

.logo-icon:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(44, 95, 95, 0.4);
}

.logo-icon i {
    font-size: 2.2rem;
    color: white;
}

.welcome-text h2 {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.75rem;
    margin-bottom: 8px;
}

.welcome-text p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

.form-group {
    position: relative;
    margin-bottom: 25px;
}

.form-control {
    background: rgba(248, 250, 252, 0.8);
    border: 2px solid rgba(44, 95, 95, 0.1);
    border-radius: 12px;
    padding: 15px 20px 15px 55px;
    font-size: 1rem;
    transition: all 0.3s ease;
    height: auto;
}

.form-control:focus {
    background: white;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(74, 155, 155, 0.25);
    outline: none;
}

.form-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 1.1rem;
    z-index: 5;
    transition: all 0.3s ease;
}

.form-control:focus+.form-icon {
    color: var(--accent-color);
}

.btn-login {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: none;
    border-radius: 12px;
    padding: 16px;
    font-weight: 600;
    font-size: 1rem;
    width: 100%;
    color: white;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-login::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: all 0.5s ease;
}

.btn-login:hover::before {
    left: 100%;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(44, 95, 95, 0.4);
}

.btn-login:active {
    transform: translateY(0);
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 25px 0;
}

.form-check {
    display: flex;
    align-items: center;
}

.form-check-input {
    width: 18px;
    height: 18px;
    border: 2px solid var(--text-light);
    border-radius: 4px;
    margin-right: 8px;
}

.form-check-input:checked {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.form-check-label {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

.forgot-password {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.forgot-password:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.divider {
    text-align: center;
    margin: 30px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(44, 95, 95, 0.2);
}

.divider span {
    background: rgba(255, 255, 255, 0.95);
    padding: 0 20px;
    color: var(--text-light);
    font-size: 0.9rem;
    position: relative;
    z-index: 5;
}

.register-link {
    text-align: center;
    margin-top: 25px;
}

.register-link p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.95rem;
}

.register-link a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.register-link a:hover {
    color: var(--primary-color);
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
}

.shape {
    position: absolute;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    top: 20%;
    left: 10%;
    animation-delay: -2s;
}

.shape-2 {
    top: 60%;
    right: 15%;
    animation-delay: -4s;
}

.shape-3 {
    bottom: 20%;
    left: 20%;
    animation-delay: -1s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* Responsive */
@media (max-width: 576px) {
    .login-card {
        padding: 35px 25px;
        border-radius: 20px;
        margin: 20px;
    }

    .logo-icon {
        width: 70px;
        height: 70px;
    }

    .logo-icon i {
        font-size: 1.8rem;
    }

    .welcome-text h2 {
        font-size: 1.5rem;
    }

    .form-control {
        padding: 14px 18px 14px 50px;
    }

    .form-icon {
        left: 18px;
    }

    .remember-forgot {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* Loading animation */
.btn-login.loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn-login.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}