* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background: #1a1a2e;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    text-align: center;
}

.gradient-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -1;
    animation: colorChange 20s infinite alternate;
}

@keyframes colorChange {
    0% {
        background: #7f5af0;
        opacity: 0.3;
        filter: blur(70px);
    }
    25% {
        background: #e68fac;
        opacity: 0.4;
        filter: blur(60px);
    }
    50% {
        background: #64b6ff;
        opacity: 0.3;
        filter: blur(70px);
    }
    75% {
        background: #f98bc9;
        opacity: 0.4;
        filter: blur(60px);
    }
    100% {
        background: #7f5af0;
        opacity: 0.3;
        filter: blur(70px);
    }
}

.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    perspective: 1000px;
}

.particle {
    position: absolute;
    border-radius: 12px;
    opacity: 0.7;
    pointer-events: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transform-style: preserve-3d;
    transition: all 0.5s ease;
}

.login-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 15px;
    padding: 40px;
    width: 420px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2),
                inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
    
    overflow: hidden;
    transform: perspective(1000px) rotateX(3deg);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    align-items: center;
    
}


.login-container:hover {
    transform: perspective(1000px) rotateX(0deg) translateY(-5px);
}

.login-container::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    z-index: -1;
    filter: blur(15px);
    opacity: 0.5;
    animation: borderGlow 10s ease infinite;
    border-radius: 20px;
}

@keyframes borderGlow {
    0% { 
        background: #a09cff; 
        opacity: 0.3; 
    }
    25% { 
        background: #ffabce; 
        opacity: 0.5; 
    }
    50% { 
        background: #90c4ff; 
        opacity: 0.3; 
    }
    75% { 
        background: #ffabce; 
        opacity: 0.5; 
    }
    100% { 
        background: #a09cff; 
        opacity: 0.3; 
    }
}

.login-title {
    color: white;
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5em;
    font-weight: 800;
    letter-spacing: -1px;
    position: relative;
    text-shadow: 0 0 20px rgba(78, 60, 238, 0.6);
    transform: skewX(-5deg);
}

.login-p {
    color: white;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    

}

.login-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: white;
    border-radius: 2px;
    opacity: 0.7;
    animation: underlineColor 8s infinite alternate;
}

@keyframes underlineColor {
    0% { background: #a09cff; }
    50% { background: #ffabce; }
    100% { background: #90c4ff; }
}

.input-group {
    position: relative;
    margin-bottom: 35px;
}

.input-group input {
    width: 100%;
    padding: 18px 25px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    border-radius: 12px;
    outline: none;
    transition: all 0.4s ease;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.input-group label {
    position: absolute;
    top: 18px;
    left: 25px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.input-group input:focus {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3),
                0 0 20px rgba(192, 132, 252, 0.3);
}

.input-group input:focus ~ label,
.input-group input:valid ~ label {
    top: -25px;
    left: 0;
    font-size: 14px;
    color: white;
    font-weight: 600;
}

.forgot-password {
    text-align: right;
    margin-bottom: 30px;
}

.forgot-password a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
}

.forgot-password a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background: white;
    transition: width 0.3s ease;
}

.forgot-password a:hover {
    color: white;
}

.forgot-password a:hover::after {
    width: 100%;
}

.login-button {
    width: 100%;
    padding: 18px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2),
                inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    letter-spacing: 1px;
    transform: translateY(0);
}

.login-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3),
                inset 0 0 0 1px rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.2);
}

.login-button:active {
    transform: translateY(0);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2),
                inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.login-button::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;
}

.login-button:hover::before {
    left: 100%;
}

.signup-link {
    text-align: center;
    margin-top: 35px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.signup-link a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 2px;
}

.signup-link a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background: white;
    transition: width 0.3s ease;
}

.signup-link a:hover::after {
    width: 100%;
}

/* Notificación */
.notification {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2),
                inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    z-index: 1000;
    font-weight: 600;
}

.notification.show {
    top: 30px;
}