/* Reemplazar las definiciones de :root y body.dark-mode por: */
.login-page {
    --primary-color: #8d007e;
    --primary-hover: #6b005f;
    --accent-color: #ccab1d;
    --text-color: #fff;
    --bg-color: #5c2356;
    --container-bg: rgba(255, 255, 255, 0.1);
    --input-bg: rgba(255, 255, 255, 0.05);
    --border-color: rgba(255, 255, 255, 0.2);
    --shadow-color: rgba(0,0,0,0.1);
    --placeholder-color: rgba(0, 0, 0, 0.6);
    --cambio_tema: var(--accent-color);
    
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-color);
    font-family: 'Segoe UI', sans-serif;
    color: var(--text-color);
    position: relative;
    overflow: hidden;
}

body.dark-mode .login-page {
    --bg-color: #1a1a2e;
    --container-bg: rgba(0, 0, 0, 0.2);
    --input-bg: rgba(0, 0, 0, 0.15);
    --border-color: rgba(255, 255, 255, 0.1);
    --placeholder-color: rgba(255, 255, 255, 0.6);
    --cambio_tema: var(--primary-hover);
}

/* Eliminar los pseudo-elementos anteriores */
.login-page::before,
.login-page::after {
    content: none;
}

/* Crear bolas con los colores del proyecto */
.login-page .color-ball {
    position: absolute;
    border-radius: 50%;
    filter: blur(5px);
    opacity: 0.7;
    z-index: 0;
    animation: float 15s infinite ease-in-out;
}

/* Bola con color primario principal */
.login-page .color-ball:nth-child(1) {
    width: 200px;
    height: 200px;
    background: var(--cambio_tema);
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

/* Bola con color primario hover */
.login-page .color-ball:nth-child(2) {
    width: 300px;
    height: 300px;
    background: var(--cambio_tema);
    bottom: 10%;
    right: 15%;
    animation-delay: -5s;
}

/* Bola con color de acento */
.login-page .color-ball:nth-child(3) {
    width: 150px;
    height: 150px;
    background: var(--cambio_tema);
    bottom: 20%;
    left: 20%;
    animation-delay: -2s;
}

/* Bola con mezcla de colores primario y acento */
.login-page .color-ball:nth-child(4) {
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    top: 20%;
    right: 20%;
    animation-delay: -7s;
}

/* Bola con variación del color primario */
.login-page .color-ball:nth-child(5) {
    width: 120px;
    height: 120px;
    background: var(--cambio_tema);
    top: 50%;
    left: 5%;
    animation-delay: -10s;
    opacity: 0.5;
}

/* Animación de flotación para las bolas */
@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.05);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.95);
    }
    100% {
        transform: translate(0, 0) scale(1);
    }
}

/* Resto del CSS se mantiene igual */
.login-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 20px;
    background: var(--container-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: 0 8px 32px var(--shadow-color);
    padding: 40px;
    text-align: center;
    z-index: 1;
}

.login-header {
    margin-bottom: 30px;
}

.login-header i {
    font-size: 4em;
    color: var(--cambio_tema);
    margin-bottom: 15px;
    animation: logoAnimation 1.5s ease-in-out infinite alternate;
}

@keyframes logoAnimation {
    from {
        transform: translateY(0) scale(1);
        text-shadow: 0 0 10px rgba(141, 0, 126, 0.2);
    }
    to {
        transform: translateY(-10px) scale(1.05);
        text-shadow: 0 10px 20px rgba(141, 0, 126, 0.4);
    }
}

.dark-mode .login-header i {
    color: var(--cambio_tema);
    animation: logoDarkAnimation 1.5s ease-in-out infinite alternate;
}

@keyframes logoDarkAnimation {
    from {
        transform: translateY(0) scale(1);
        text-shadow: 0 0 10px rgba(204, 171, 29, 0.2);
    }
    to {
        transform: translateY(-10px) scale(1.05);
        text-shadow: 0 10px 20px rgba(204, 171, 29, 0.4);
    }
}

.theme-btn {
    background: var(--accent-color);
    border: 2px solid var(--accent-color);
    padding: 12px 25px;
    border-radius: 12px;
    color: var(--primary-color); /* Color primario para contraste */
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1em;
    transition: all 0.3s ease;
    min-width: 180px;
    justify-content: center;
    margin: 0 auto;
    font-weight: 700; /* Texto más grueso para mejor visibilidad */
    box-shadow: 0 4px 15px rgba(204, 171, 29, 0.3);
}

.theme-btn:hover {
    background: #d9b82f;
    border-color: #d9b82f;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(204, 171, 29, 0.4);
}

.dark-mode .theme-btn {
    background: var(--text-color);
    border-color: var(--text-color);
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.dark-mode .theme-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--text-color);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}
.login-header h2 {
    margin: 0;
    font-size: 1.8em;
    font-weight: 600;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    background: var(--input-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 0 15px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.input-group:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30,200,231,0.2);
}

.input-group i {
    color: var(--cambio_tema);
    font-size: 1.1em;
    margin-right: 10px;
}

.input-group input {
    width: 100%;
    padding: 15px;
    border: none;
    background: none;
    color: var(--text-color);
    font-size: 1em;
    outline: none;
}

.input-group input::placeholder {
    color: var(--placeholder-color);
    opacity: 1;
}

button[type='submit'] {
    width: 100%;
    padding: 15px;
    background: var(--cambio_tema);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(141, 0, 126, 0.3);
}

button[type='submit']:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(141, 0, 126, 0.4);
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-danger {
    background: rgba(255,0,0,0.1);
    color: #ff3333;
    border: 1px solid rgba(255,0,0,0.2);
}

.theme-toggle {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
}