.registro-directo-container {
    min-height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #1a1f25 0%, #2b323a 100%);
    padding: 1rem;
}

.registro-panel {
    width: 100%;
    max-width: 800px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.camera-container {
    position: relative;
    width: 100%;
    max-width: 720px;
    aspect-ratio: 16/9;
    border-radius: 15px;
    overflow: hidden;
}

#videoElement {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.face-outline {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.face-outline .circle {
    width: 250px;
    height: 250px;
    border: 4px solid #ffffff50;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.face-outline.detected .circle {
    border-color: #4CAF50;
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.5);
}

.info-panel {
    width: 100%;
    text-align: center;
    color: white;
}

.usuario-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    animation: fadeIn 0.5s ease-in-out;
}

.usuario-info img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #4CAF50;
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.3);
    animation: scaleIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.5);
    }
    to {
        transform: scale(1);
    }
}

.instrucciones {
    padding: 1rem;
}

.mensaje-confirmacion {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 1rem 2rem;
    border-radius: 10px;
    color: white;
    animation: slideUp 0.3s ease;
    max-width: 90%;
    text-align: center;
    z-index: 1000;
}

.mensaje-confirmacion.success {
    background: #4CAF50;
}

.mensaje-confirmacion.error {
    background: #f44336;
}

.mensaje-confirmacion.warning {
    background: #ff9800;
}

@keyframes slideUp {
    from {
        transform: translate(-50%, 100%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}
